about summary refs log tree commit diff
path: root/library/std/src/sys/unix/ext/process.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/std/src/sys/unix/ext/process.rs')
-rw-r--r--library/std/src/sys/unix/ext/process.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/library/std/src/sys/unix/ext/process.rs b/library/std/src/sys/unix/ext/process.rs
index 5efe08340f4..6ab109cdb08 100644
--- a/library/std/src/sys/unix/ext/process.rs
+++ b/library/std/src/sys/unix/ext/process.rs
@@ -187,6 +187,13 @@ pub trait ExitStatusExt {
     #[unstable(feature = "unix_process_wait_more", issue = "none")]
     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")]
+    fn continued(&self) -> bool;
+
     /// Returns the underlying raw `wait` status.
     #[unstable(feature = "unix_process_wait_more", issue = "none")]
     fn into_raw(self) -> i32;
@@ -210,6 +217,10 @@ impl ExitStatusExt for process::ExitStatus {
         self.as_inner().stopped_signal()
     }
 
+    fn continued(&self) -> bool {
+        self.as_inner().continued()
+    }
+
     fn into_raw(self) -> i32 {
         self.as_inner().into_raw().into()
     }