Martin v. Löwis <mar...@v.loewis.de> added the comment:

I'm not so sure that Python is in violation of the convention here. The exit 
code should report *unhandled* signals, indicating that the process didn't 
provide an exit code at all (as it didn't call exit(2)). You are supposed to 
use WIFEXITED/WIFSIGNALED/WIFSTOPPED on the status code, and interpret it as an 
exit code only if WIFEXITED.

Since Python *does* handle the signal, and exits "regularly", we shouldn't (and 
probably even can't) claim that we didn't exit (unless we raise the signal 
again instead of exiting).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue14229>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to