mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:48:11 +00:00
Kernel: Add support for the WSTOPPED flag to the waitpid() syscall.
This makes waitpid() return when a child process is stopped via a signal. Use this in Shell to catch stopped children and return control to the command line. :^) Fixes #298.
This commit is contained in:
parent
de03b72979
commit
3073ea7d84
6 changed files with 44 additions and 20 deletions
|
@ -3,6 +3,10 @@
|
|||
#include <AK/Types.h>
|
||||
|
||||
#define WNOHANG 1
|
||||
#define WUNTRACED 2
|
||||
#define WSTOPPED WUNTRACED
|
||||
#define WEXITED 4
|
||||
#define WCONTINUED 8
|
||||
|
||||
#define R_OK 4
|
||||
#define W_OK 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue