summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-12-01 20:20:30 -0700
committerAndreas Kling <kling@serenityos.org>2020-12-02 12:57:25 +0100
commitf68115aba31b0702ac3e36cdf096704747e0c320 (patch)
treed6abe0995cce26b1a69db183e45d2f4a0e3b31d7 /Libraries/LibGUI
parentd6174f9c795ad28982960c9abf17cdda15744adf (diff)
downloadserenity-f68115aba31b0702ac3e36cdf096704747e0c320.zip
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.
Diffstat (limited to 'Libraries/LibGUI')
-rw-r--r--Libraries/LibGUI/Application.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Libraries/LibGUI/Application.h b/Libraries/LibGUI/Application.h
index bc6c3e2ba2..d28b9da7ce 100644
--- a/Libraries/LibGUI/Application.h
+++ b/Libraries/LibGUI/Application.h
@@ -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);