Why doesn't python die gracefully on an SIGTERM???

Jaap Vermeulen (jaap@sequent.com)
Tue, 29 Sep 92 12:32:47 PDT

I wrote some python programs that temporarily modify data outside the
process (in this case utmp). Normally, that data will be restored to the
correct state when the program terminates normally or when I interrupt
the execution of the program (python does a good job of cleaning up).

However, often I run such a python program in the background. Now the
program ignores the SIGINT and any other signal will cause a non-graceful
termination where python does not clean up at all.

Would it be possible to add at least some functionality to allow for
graceful termination after the most common signal, SIGTERM?

Or are there any other plans in this area?

Thanks,

-Jaap-

--
Jaap Vermeulen					+--------------------------+
						| Sequent Computer Systems |
	Internet : jaap@sequent.com		| Beaverton, Oregon	   |
	Uucp	 : ...uunet!sequent!jaap	+--------------------------+