diff options
author | Matthias Schiffer <matthias@gamezock.de> | 2009-03-02 17:13:41 +0100 |
---|---|---|
committer | Matthias Schiffer <matthias@gamezock.de> | 2009-03-02 17:13:41 +0100 |
commit | e081cc2b3528ce608ee3fa9769d9e4cd59cc3535 (patch) | |
tree | f45b0399ffe1c20ced481f793da89587eebfea31 /src/Common | |
parent | f20b7de7a7f54b5567c195f01af06a43923988c8 (diff) | |
download | mad-e081cc2b3528ce608ee3fa9769d9e4cd59cc3535.tar mad-e081cc2b3528ce608ee3fa9769d9e4cd59cc3535.zip |
ActionManager: Leere Pipe, damit keine Endlosschleife entsteht
Diffstat (limited to 'src/Common')
-rw-r--r-- | src/Common/ActionManager.cpp | 4 |
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); |