What about Kushal's suggestion above? Does the following work for you? signal.signal(signal.SIGTERM, my_SIGTERM_handler) signal.siginterrupt(signal.SIGTERM, flag=False)
According to the siginterrupt docs ( http://docs.python.org/library/signal.html) """ Change system call restart behaviour: if flag is False, system calls will be restarted when interrupted by signal signalnum, otherwise system calls will be interrupted. Returns nothing. Availability: Unix '""" Cheers, Oscar.
-- http://mail.python.org/mailman/listinfo/python-list