diff options
Diffstat (limited to 'src/sys/signal.rs')
-rw-r--r-- | src/sys/signal.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sys/signal.rs b/src/sys/signal.rs index 887c24f3..e7978052 100644 --- a/src/sys/signal.rs +++ b/src/sys/signal.rs @@ -409,8 +409,8 @@ pub fn pthread_sigmask(how: SigmaskHow, Errno::result(res).map(drop) } -pub fn kill<T: Into<Option<Signal>>>(pid: libc::pid_t, signal: T) -> Result<()> { - let res = unsafe { libc::kill(pid, +pub fn kill<T: Into<Option<Signal>>>(pid: ::unistd::Pid, signal: T) -> Result<()> { + let res = unsafe { libc::kill(pid.into(), match signal.into() { Some(s) => s as libc::c_int, None => 0, |