MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / send_sigterm

Method send_sigterm

src/server/lifecycle.rs:71–73  ·  view source on GitHub ↗
(&self, pid: u32)

Source from the content-addressed store, hash-verified

69 /// Send SIGTERM to the server process
70 #[cfg(unix)]
71 pub fn send_sigterm(&self, pid: u32) -> bool {
72 unsafe { libc::kill(pid as i32, libc::SIGTERM) == 0 }
73 }
74
75 #[cfg(unix)]
76 fn is_process_alive(&self, pid: u32) -> bool {

Callers 1

executeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected