Add parens to silence warning

This triggered -Wparentheses in gcc 10.1.0
This commit is contained in:
Fabian Homborg 2020-08-08 09:14:25 +02:00
parent 3dcb39f8ec
commit 103a4ece81

View file

@ -431,7 +431,7 @@ static void process_mark_finished_children(parser_t &parser, bool block_ok) {
// Ok, we are reapable. Run waitpid()!
int statusv = -1;
pid_t pid = waitpid(proc->pid, &statusv, WNOHANG | WUNTRACED | WCONTINUED);
assert(pid <= 0 || pid == proc->pid && "Unexpcted waitpid() return");
assert((pid <= 0 || pid == proc->pid) && "Unexpcted waitpid() return");
if (pid <= 0) continue;
// The process has stopped or exited! Update its status.