summaryrefslogtreecommitdiffstats
path: root/background.c
diff options
context:
space:
mode:
authorKevin McCarthy <kevin@8t8.us>2020-03-01 12:09:17 -0800
committerKevin McCarthy <kevin@8t8.us>2020-03-01 12:09:17 -0800
commit14752ae2adb110624ad73bd4718d70275c2ae017 (patch)
tree7bb587a702d33bed635e967fc5c18379bcd1e013 /background.c
parent48868326902b3e20369b5fc7190d820eee5f6892 (diff)
Use -1, not WAIT_ANY for waitpid() portability.
Diffstat (limited to 'background.c')
-rw-r--r--background.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/background.c b/background.c
index 044f65b4..3d8af3c0 100644
--- a/background.c
+++ b/background.c
@@ -106,7 +106,7 @@ int mutt_background_process_waitpid (void)
if (!ProcessList)
return 0;
- while ((pid = waitpid (WAIT_ANY, NULL, WNOHANG)) > 0)
+ while ((pid = waitpid (-1, NULL, WNOHANG)) > 0)
{
process = ProcessList;
while (process)