(&mut self)
| 197 | impl Drop for ParentSignalGuard { |
| 198 | #[allow(unsafe_code)] |
| 199 | fn drop(&mut self) { |
| 200 | for &(signal, previous) in self.previous.iter().rev() { |
| 201 | // SAFETY: these `SigAction` values were returned by `sigaction` |
| 202 | // above for this process, so restoring them here returns the parent |
| 203 | // signal handlers to their original state. |
| 204 | let _ = unsafe { sigaction(signal, &previous) }; |
| 205 | } |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | #[cfg(unix)] |
nothing calls this directly
no outgoing calls
no test coverage detected