Wait for child process, not any child process in group

This commit is contained in:
Matt Green 2016-11-15 22:43:51 -05:00
parent 271ef84192
commit e4557e462b
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ mod imp {
pub fn wait(&self) {
use nix::sys::wait::waitpid;
let _ = waitpid(-self.pid, None);
let _ = waitpid(self.pid, None);
}
}
}