Skip to content

Commit 6d82749

Browse files
committed
Fix: signal::kill() returns Errno directly now
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 parent 1f157b9 commit 6d82749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/process.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ impl PtyProcess {
202202
match signal::kill(self.child_pid, sig) {
203203
Ok(_) => {}
204204
// process was already killed before -> ignore
205-
Err(nix::Error::Sys(nix::errno::Errno::ESRCH)) => {
205+
Err(nix::errno::Errno::ESRCH) => {
206206
return Ok(wait::WaitStatus::Exited(Pid::from_raw(0), 0))
207207
}
208208
Err(e) => return Err(Error::from(e)),

0 commit comments

Comments
 (0)