From e081cc2b3528ce608ee3fa9769d9e4cd59cc3535 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 2 Mar 2009 17:13:41 +0100 Subject: ActionManager: Leere Pipe, damit keine Endlosschleife entsteht --- src/Common/ActionManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Common') 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); -- cgit v1.2.3