diff options
author | eldritch horrors <pennae@lix.systems> | 2024-04-05 20:35:13 +0200 |
---|---|---|
committer | eldritch horrors <pennae@lix.systems> | 2024-06-23 11:52:49 +0000 |
commit | b43a2e84c4b2fa7cb1167693652702e6dac95f53 (patch) | |
tree | c6fa909571c64bd5c5d8b8e70892bf64452ae791 /src/libmain | |
parent | a9949f4760fea60ee790c27629e9620bf3ab5e3f (diff) |
libutil: make Pid -> pid_t operations explicit
Change-Id: I3137cc140590001fe7ba542844e735944a0a9255
Diffstat (limited to 'src/libmain')
-rw-r--r-- | src/libmain/shared.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc index f99777a20..29538a9ca 100644 --- a/src/libmain/shared.cc +++ b/src/libmain/shared.cc @@ -378,7 +378,7 @@ RunPager::RunPager() RunPager::~RunPager() { try { - if (pid != -1) { + if (pid) { std::cout.flush(); dup2(std_out, STDOUT_FILENO); pid.wait(); |