(self)
| 137 | #[inline] |
| 138 | #[doc(alias = "WEXITSTATUS")] |
| 139 | pub fn exit_status(self) -> Option<i32> { |
| 140 | if self.exited() { |
| 141 | Some(backend::process::wait::WEXITSTATUS(self.0)) |
| 142 | } else { |
| 143 | None |
| 144 | } |
| 145 | } |
| 146 | |
| 147 | /// Returns the number of the signal that terminated the process, if the |
| 148 | /// process was terminated by a signal. |
no test coverage detected