You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
inorton
changed the title
Popen.poll() doesn't reflect the returncode value when set
Popen.poll() doesn't reflect the returncode value when using a callback
Aug 1, 2024
This is a bit counterintuitive, but I'm not sure how it is supposed to be fixed. I see two options:
just raise an exception when callback and returncode are provided together, and inform users that the returncode shall be set within a callback,
set the returncode if it was never modified by a callback
The second option seems to be better, but it could confuse people that are changing the returncode within the callback, but still expect it to finally land on the original returncode provided in the fp.register().
I'll think about it. It may be confusing also for other, so some warning or even error in such cases could be beneficial. I'll keep this issue open until I'll figure something out.
I have a number of callers that do..
I register with:
But
proc.poll()
seems to always returnNone
The text was updated successfully, but these errors were encountered: