Wait for child process, not any child process in group
This commit is contained in:
parent
271ef84192
commit
e4557e462b
|
@ -69,7 +69,7 @@ mod imp {
|
||||||
pub fn wait(&self) {
|
pub fn wait(&self) {
|
||||||
use nix::sys::wait::waitpid;
|
use nix::sys::wait::waitpid;
|
||||||
|
|
||||||
let _ = waitpid(-self.pid, None);
|
let _ = waitpid(self.pid, None);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue