Martin Panter <vadmium...@gmail.com> added the comment:

TypeError if “posix_spawn_file_actions_init” fails doesn’t seem right. I 
suggest OSError, MemoryError, or even plain Exception instead.

“File_actionsp” is set to point to a local variable “_file_actions”, but the 
variable goes out of scope before the pointer is used. This is technically 
undefined behaviour (even if it happens to work). Simplest solution would be to 
move the variables into the same outer scope.

----------

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

Reply via email to