diff options
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index e67568b1a78d..b1231e45574f 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -790,6 +790,7 @@ void Pid::kill() int Pid::wait(bool block) { + assert(pid != -1); while (1) { int status; int res = waitpid(pid, &status, block ? 0 : WNOHANG); |