blob: eb00d63f6488cd52644989a8f0dd57fae6fb142f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Callahan <bcallah@openbsd.org>
Date: Sun, 10 May 2020 11:50:31 -0400
Subject: [PATCH] Replace a use of wait3() with waitpid() in the job control
wait3() does not exist on serenity.
---
src/jobs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/jobs.c b/src/jobs.c
index 606d603..92ac84d 100644
--- a/src/jobs.c
+++ b/src/jobs.c
@@ -1147,7 +1147,7 @@ waitproc(int block, int *status)
do {
gotsigchld = 0;
- err = wait3(status, flags, NULL);
+ err = waitpid(-1, status, flags);
if (err || !block)
break;
|