serenity/Ports/dash/patches/0001-Replace-a-use-of-wait3-with-waitpid-in-the-job-contr.patch

23 lines
629 B
Diff

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;