From bdeb4aab9640d3d29f22c632fbcdd74ce41f3937 Mon Sep 17 00:00:00 2001 From: Sascha Kruse Date: Tue, 13 Sep 2011 11:27:55 +0200 Subject: [PATCH] don't eat up cpu with -msg --- dunst.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dunst.c b/dunst.c index 06f23e1..02d5712 100644 --- a/dunst.c +++ b/dunst.c @@ -237,6 +237,8 @@ run(void) { /* dbus_poll blocks for max 2 seconds, if no events are present */ if(listen_to_dbus) { dbus_poll(); + } else { + usleep(1000*50); } now = time(&now); if(msgqueue != NULL) {