Gregory P. Smith added the comment:

fundamentally: this shouldn't work anyways.

You are calling wait() from a signal handler.
That is a blocking operation.
You cannot do that from a signal handler.

os.waitpid(p.pid, 1) is os.waitpid(p.pid, os.WNOHANG) which is a non-blocking 
operation so it works.

----------

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

Reply via email to