mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 14:23:09 +00:00
Add parens to silence warning
This triggered -Wparentheses in gcc 10.1.0
This commit is contained in:
parent
3dcb39f8ec
commit
103a4ece81
1 changed files with 1 additions and 1 deletions
|
@ -431,7 +431,7 @@ static void process_mark_finished_children(parser_t &parser, bool block_ok) {
|
||||||
// Ok, we are reapable. Run waitpid()!
|
// Ok, we are reapable. Run waitpid()!
|
||||||
int statusv = -1;
|
int statusv = -1;
|
||||||
pid_t pid = waitpid(proc->pid, &statusv, WNOHANG | WUNTRACED | WCONTINUED);
|
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;
|
if (pid <= 0) continue;
|
||||||
|
|
||||||
// The process has stopped or exited! Update its status.
|
// The process has stopped or exited! Update its status.
|
||||||
|
|
Loading…
Reference in a new issue