I want to handle a kill signal..In my program i wrote like this

def handler(signum, frame):
    print "Signal",signum
    delete_temp_file()
    exit(1)
signal.signal(signal.SIGTERM, handler)

And when i tried pkill processid .program is exited but not deleting the
temp file
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to