os._exit(), os.kill(os.getpid(), 9)
Ralf Hildebrandt
hildeb at www.stahl.bau.tu-bs.de
Fri Jan 21 09:51:17 EST 2000
On Fri, 21 Jan 2000 14:54:29 +0100, Gerrit Holl <gerrit.holl at pobox.com> wrote:
>os._exit(127)
This exits with exit code 127 and doesn't clean up...
>os.kill(os.getpid(), 9)
Rather make that
os.kill(os.getpid(), signal.SIGKILL)
This makes the interpreter kill itself with SIGKILL. The exit code is
undefined.
Ergo those two are NOT equivalent.
More information about the Python-list
mailing list