On Tue, Jul 31, 2012 at 5:23 PM, Prasad, Ramit <ramit.pra...@jpmorgan.com>wrote:
> [snip] > > > >> This will be the most robust as it will > > >> also work for cases where the program is terminated without the use of > > >> the keyboard (i.e. kill -9, task manager, computer reboot, etc.) but > > > > That unfortunately is not so. kill -9 does *not* send a signal or raise > an > > exception. It just kills the process dead, instantly and without warning. > > Does a plain kill send a signal or do you need to use an option > like SIGHUP? > > kill is supposed to always send a signal. Without options it will send the process SIGTERM, which indicates to the process it should terminate. kill -9 sends SIGKILL, which is kind of special since it is a signal that never really arrives at the process itself. When the kernel notices the SIGKILL it will just kill the process. Hugo
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor