8000 Stabilise unix_process_wait_more, extra ExitStatusExt methods by ijackson · Pull Request #88300 · rust-lang/rust · GitHub
[go: up one dir, main page]

Skip to content

Stabilise unix_process_wait_more, extra ExitStatusExt methods #88300

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

Merged
merged 3 commits into from
Oct 23, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Stabilise unix_process_await_more, extra ExitStatusExt methods
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
  • Loading branch information
ijackson committed Aug 24, 2021
commit c4d4699f4b16c8b4285b796e7d0e93215433e45a
8 changes: 4 additions & 4 deletions library/std/src/os/unix/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,27 +237,27 @@ pub trait ExitStatusExt: Sealed {
fn signal(&self) -> Option<i32>;

/// If the process was terminated by a signal, says whether it dumped core.
#[unstable(feature = "unix_process_wait_more", issue = "80695")]
#[stable(feature = "unix_process_wait_more", since = "1.56.0")]
fn core_dumped(&self) -> bool;

/// If the process was stopped by a signal, returns that signal.
///
/// In other words, if `WIFSTOPPED`, this returns `WSTOPSIG`. This is only possible if the status came from
/// a `wait` system call which was passed `WUNTRACED`, and was then converted into an `ExitStatus`.
#[unstable(feature = "unix_process_wait_more", issue = "80695")]
#[stable(feature = "unix_process_wait_more", since = "1.56.0")]
fn stopped_signal(&self) -> Option<i32>;

/// Whether the process was continued from a stopped status.
///
/// Ie, `WIFCONTINUED`. This is only possible if the status came from a `wait` system call
/// which was passed `WCONTINUED`, and was then converted into an `ExitStatus`.
#[unstable(feature = "unix_process_wait_more", issue = "80695")]
#[stable(feature = "unix_process_wait_more", since = "1.56.0")]
fn continued(&self) -> bool;

/// Returns the underlying raw `wait` status.
///
/// The returned integer is a **wait status, not an exit status**.
#[unstable(feature = "unix_process_wait_more", issue = "80695")]
#[stable(feature = "unix_process_wait_more", since = "1.56.0")]
fn into_raw(self) -> i32;
}

Expand Down
0