You can tell by the exit code from system() whether the subprocess exited due to a signal. Consider this code: import os while 1: print os.system("sleep 1") unless you happen to hit ctrl-c at the right time, you'll see it print "2" (and "0" when the sleep finishes). The exit code can be interpreted according to the waitpid manpage, though I am not sure where the Python equivalent of the WIFSIGNALED and WTERMSIG macros are.
Jeff
pgpm5kEy1m2f8.pgp
Description: PGP signature
-- http://mail.python.org/mailman/listinfo/python-list