From 84fa0102c6906252999967925f32098ab6d5a259 Mon Sep 17 00:00:00 2001
From: dzwdz
Date: Sun, 11 Jun 2023 19:17:39 +0200
Subject: kernel: replace await with wait2, roughly compatible with POSIX

dash works now :^)))
---
 src/user/lib/include/sys/wait.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/user/lib/include/sys')

diff --git a/src/user/lib/include/sys/wait.h b/src/user/lib/include/sys/wait.h
index c71418c..cff407e 100644
--- a/src/user/lib/include/sys/wait.h
+++ b/src/user/lib/include/sys/wait.h
@@ -2,8 +2,8 @@
 #include <sys/types.h>
 
 #define WIFSTOPPED(x) 0
-#define WEXITSTATUS(x) 0
-#define WIFEXITED(x) 0
+#define WEXITSTATUS(x) ((x)&0xFF)
+#define WIFEXITED(x) 1
 #define WSTOPSIG(x) 0
 #define WTERMSIG(x) 0
 
-- 
cgit v1.2.3