diff --git a/Kernel/API/POSIX/sys/wait.h b/Kernel/API/POSIX/sys/wait.h index d83153830d..74d3ec0c07 100644 --- a/Kernel/API/POSIX/sys/wait.h +++ b/Kernel/API/POSIX/sys/wait.h @@ -18,6 +18,7 @@ extern "C" { #define WIFEXITED(status) (WTERMSIG(status) == 0) #define WIFSTOPPED(status) (((status)&0xff) == 0x7f) #define WIFSIGNALED(status) (((char)(((status)&0x7f) + 1) >> 1) > 0) +#define WIFCONTINUED(status) ((status) == 0xffff) #define WNOHANG 1 #define WUNTRACED 2 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();