unix ExitStatus: Add tracking issue to new methods
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
This commit is contained in:
parent
06a405c49c
commit
fa68567a1f
@ -177,25 +177,25 @@ pub trait ExitStatusExt {
|
||||
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 = "none")]
|
||||
#[unstable(feature = "unix_process_wait_more", issue = "80695")]
|
||||
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`, was then converted into an `ExitStatus`.
|
||||
#[unstable(feature = "unix_process_wait_more", issue = "none")]
|
||||
#[unstable(feature = "unix_process_wait_more", issue = "80695")]
|
||||
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`, was then converted into an `ExitStatus`.
|
||||
#[unstable(feature = "unix_process_wait_more", issue = "none")]
|
||||
#[unstable(feature = "unix_process_wait_more", issue = "80695")]
|
||||
fn continued(&self) -> bool;
|
||||
|
||||
/// Returns the underlying raw `wait` status.
|
||||
#[unstable(feature = "unix_process_wait_more", issue = "none")]
|
||||
#[unstable(feature = "unix_process_wait_more", issue = "80695")]
|
||||
fn into_raw(self) -> i32;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user