summaryrefslogtreecommitdiff
path: root/Userland/Libraries
diff options
context:
space:
mode:
authorSeekingBlues <seekingblues@gmail.com>2022-06-17 00:21:02 +0800
committerAndreas Kling <kling@serenityos.org>2022-06-17 10:59:26 +0200
commit8730e56e882f5f4082b0e24ce3948ed035a2046a (patch)
tree5fca1c74d38cdc6fa0ee8c6855a7c331f159dedd /Userland/Libraries
parent5a73bf1553bc669eb3d0a669bf48a62e7ca38429 (diff)
downloadserenity-8730e56e882f5f4082b0e24ce3948ed035a2046a.zip
LibC: Add `WIFCONTINUED` macro
Like other systems, we can encode the continued state with 0xffff in the status value. This is needed for some ports.
Diffstat (limited to 'Userland/Libraries')
-rw-r--r--Userland/Libraries/LibC/sys/wait.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/sys/wait.cpp b/Userland/Libraries/LibC/sys/wait.cpp
index 62ee188dee..3affc55be8 100644
--- a/Userland/Libraries/LibC/sys/wait.cpp
+++ b/Userland/Libraries/LibC/sys/wait.cpp
@@ -64,7 +64,7 @@ pid_t waitpid(pid_t waitee, int* wstatus, int options)
*wstatus = siginfo.si_status << 8 | 0x7f;
break;
case CLD_CONTINUED:
- *wstatus = 0;
+ *wstatus = 0xffff;
return 0; // return 0 if running
default:
VERIFY_NOT_REACHED();