summaryrefslogtreecommitdiff
path: root/Kernel/Thread.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-07-14 11:35:49 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-07-14 11:35:49 +0200
commit3073ea7d84be5d418322fa71b6a223283d811788 (patch)
tree10187c94943aa4dda98d1f3058ea2049367fc16e /Kernel/Thread.h
parentde03b72979b8ba7bb50d49498cc9144ed99d3c44 (diff)
downloadserenity-3073ea7d84be5d418322fa71b6a223283d811788.zip
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.
Diffstat (limited to 'Kernel/Thread.h')
-rw-r--r--Kernel/Thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Kernel/Thread.h b/Kernel/Thread.h
index 225152f93e..d955d207df 100644
--- a/Kernel/Thread.h
+++ b/Kernel/Thread.h
@@ -182,6 +182,7 @@ private:
RefPtr<Region> m_kernel_stack_region;
RefPtr<Region> m_kernel_stack_for_signal_handler_region;
pid_t m_waitee_pid { -1 };
+ int m_wait_options { 0 };
RefPtr<FileDescription> m_blocked_description;
timeval m_select_timeout;
SignalActionData m_signal_action_data[32];