Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (20 sloc) 539 Bytes
# __BEGIN_LICENSE__
# Copyright (C) 2008-2010 United States Government as represented by
# the Administrator of the National Aeronautics and Space Administration.
# All Rights Reserved.
# __END_LICENSE__
import optparse
import signal
import time
def hello(signum=None, frame=None):
print 'hello'
def runTest():
signal.signal(signal.SIGTERM, hello)
while 1:
time.sleep(1)
def main():
parser = optparse.OptionParser()
_opts, _args = parser.parse_args()
runTest()
if __name__ == "__main__":
main()
Jump to Line
Something went wrong with that request. Please try again.