MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / signal

Method signal

crates/openshell-supervisor-process/src/process.rs:747–750  ·  view source on GitHub ↗

Send a signal to the process. # Errors Returns an error if the signal cannot be sent.

(&self, sig: Signal)

Source from the content-addressed store, hash-verified

745 ///
746 /// Returns an error if the signal cannot be sent.
747 pub fn signal(&self, sig: Signal) -> Result<()> {
748 let pid = i32::try_from(self.pid).unwrap_or(i32::MAX);
749 signal::kill(Pid::from_raw(pid), sig).into_diagnostic()
750 }
751
752 /// Kill the process.
753 ///

Callers 2

killMethod · 0.80
fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected