bpo-20104: Improve error handling and fix a reference leak in os.posix_spawn().#6332
Conversation
gpshead
left a comment
There was a problem hiding this comment.
I made a couple of commits to fixup trivial issues.
Sorry, something went wrong.
|
When you're done making the requested changes, leave the comment: |
Sorry, something went wrong.
serhiy-storchaka
left a comment
There was a problem hiding this comment.
Thank you for fixing these issues and for documenting the new function @gpshead.
But increfing a borrowed reference is neccessary, and supporting other sequences as argv can open a can of worms. It should be discussed separately if there is a need of this feature.
Sorry, something went wrong.
|
Added new tests (mainly inspired by tests for the third-party module https://github.com/projectcalico/posix_spawn) and improved the documentation. |
Sorry, something went wrong.
|
@gpshead: @serhiy-storchaka updated his PR and replied to your comments, would you mind to review it again? @serhiy-storchaka: Travis CI is unhappy. Did you check why? This PR fixes a reference leak which makes the Linux Refleaks buildbot red: https://bugs.python.org/issue33357 cc @pablogsal Note: I didn't review the PR. |
Sorry, something went wrong.
|
@serhiy-storchaka: Please replace |
Sorry, something went wrong.
|
Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.7. |
Sorry, something went wrong.
…x_spawn(). (pythonGH-6332) (cherry picked from commit ef34753) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
https://bugs.python.org/issue20104