mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:07:47 +00:00
Taskbar: Wait on all waitable children in SIGCHLD handler
We need to call waitpid until no more waitable children are available. This is necessary because SIGCHLD signals may coalesce into one when multiple children terminate almost simultaneously. Also, switch to EventLoop's asynchronous signal handling mechanism, which allows more complex operations in the signal handler.
This commit is contained in:
parent
d6174f9c79
commit
f68115aba3
2 changed files with 7 additions and 4 deletions
|
@ -74,6 +74,8 @@ public:
|
|||
|
||||
bool focus_debugging_enabled() const { return m_focus_debugging_enabled; }
|
||||
|
||||
Core::EventLoop& event_loop() { return *m_event_loop; }
|
||||
|
||||
private:
|
||||
Application(int argc, char** argv);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue