From 965710e7337523fc8605310d74c6f9240d76e7ce Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 14 Jan 2011 21:22:02 +0100 Subject: [PATCH] Use usleep() instead of sleep(). --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.c b/src/net.c index b34ff38..39b467d 100644 --- a/src/net.c +++ b/src/net.c @@ -368,7 +368,7 @@ int main_loop(void) { #endif while(true) { - sleep(1); + usleep(1000); struct event *event; while((event = get_expired_event())) { event->handler(event->data); -- 2.25.1