-
Notifications
You must be signed in to change notification settings - Fork 12.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add missing methods to unix ExitStatusExt #79982
Commits on Jan 13, 2021
-
unix ExitStatus: Do not treat WIFSTOPPED as WIFSIGNALED
A unix wait status can contain, at least, exit statuses, termination signals, and stop signals. WTERMSIG is only valid if WIFSIGNALED. https://pubs.opengroup.org/onlinepubs/9699919799/functions/wait.html It will not be easy to experience this bug with `Command`, because that doesn't pass WUNTRACED. But you could make an ExitStatus containing, say, a WIFSTOPPED, from a call to one of the libc wait functions. (In the WIFSTOPPED case, there is WSTOPSIG. But a stop signal is encoded differently to a termination signal, so WTERMSIG and WSTOPSIG are by no means the same.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for 5b1316f - Browse repository at this point
Copy the full SHA 5b1316fView commit details -
unix ExitStatus: Clarify docs for .signal()
We need to be clear that this never returns WSTOPSIG. That is, if WIFSTOPPED, the return value is None. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for 12d62aa - Browse repository at this point
Copy the full SHA 12d62aaView commit details -
unix ExitStatus: Provide .into_raw()
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for 530270f - Browse repository at this point
Copy the full SHA 530270fView commit details -
unix ExitStatus: Provide .core_dumped
This is essential for proper reporting of child process status on Unix. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for 3f05051 - Browse repository at this point
Copy the full SHA 3f05051View commit details -
unix ExitStatus: Provide .stopped_signal()
Necessary to handle WIFSTOPPED. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for f060b9e - Browse repository at this point
Copy the full SHA f060b9eView commit details -
unix ExitStatus: Provide .continued()
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for 42ea8f6 - Browse repository at this point
Copy the full SHA 42ea8f6View commit details -
Replace
Ie
withIn other words
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Configuration menu - View commit details
-
Copy full SHA for 29c851a - Browse repository at this point
Copy the full SHA 29c851aView commit details -
Replace
Ie
withIn other words
Co-authored-by: Joshua Nelson <joshua@yottadb.com>
Configuration menu - View commit details
-
Copy full SHA for 06a405c - Browse repository at this point
Copy the full SHA 06a405cView commit details -
unix ExitStatus: Add tracking issue to new methods
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for fa68567 - Browse repository at this point
Copy the full SHA fa68567View commit details -
ExitStatusExt unix: Retrospectively seal this trait
As discussed in rust-lang#79982. I think the "new interfaces", ie the new trait and impl, must be insta-stable. This seems OK because we are, in fact, adding a new restriction to the stable API. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for 7012194 - Browse repository at this point
Copy the full SHA 7012194View commit details -
ExitStatusExt windows: Retrospectively seal this trait
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for f3e7199 - Browse repository at this point
Copy the full SHA f3e7199View commit details -
Configuration menu - View commit details
-
Copy full SHA for efddf59 - Browse repository at this point
Copy the full SHA efddf59View commit details -
ExitStatusExt: Fix build on Fuchsia
This is not particularly pretty but the current situation is a mess and I don't think I'm making it significantly worse. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Configuration menu - View commit details
-
Copy full SHA for 05a88aa - Browse repository at this point
Copy the full SHA 05a88aaView commit details
Commits on Jan 14, 2021
-
Configuration menu - View commit details
-
Copy full SHA for a8d0161 - Browse repository at this point
Copy the full SHA a8d0161View commit details