summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <matthias@gamezock.de>2009-03-02 17:13:41 +0100
committerMatthias Schiffer <matthias@gamezock.de>2009-03-02 17:13:41 +0100
commite081cc2b3528ce608ee3fa9769d9e4cd59cc3535 (patch)
treef45b0399ffe1c20ced481f793da89587eebfea31
parentf20b7de7a7f54b5567c195f01af06a43923988c8 (diff)
downloadmad-e081cc2b3528ce608ee3fa9769d9e4cd59cc3535.tar
mad-e081cc2b3528ce608ee3fa9769d9e4cd59cc3535.zip
ActionManager: Leere Pipe, damit keine Endlosschleife entsteht
-rw-r--r--src/Common/ActionManager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Common/ActionManager.cpp b/src/Common/ActionManager.cpp
index fc2bd98..166001a 100644
--- a/src/Common/ActionManager.cpp
+++ b/src/Common/ActionManager.cpp
@@ -51,6 +51,10 @@ void ActionManager::doDeinit() {
void ActionManager::run() {
+ // Empty pipe
+ char buf[16];
+ while(read(notifyPipe[0], buf, sizeof(buf)) > 0) {}
+
while(true) {
sigset_t set, oldset;
sigfillset(&set);