From 0e9ec2a7023487f02e051a318e3bab7a265ef199 Mon Sep 17 00:00:00 2001 From: Roger Wolff Date: Tue, 6 Aug 2013 07:53:57 +0200 Subject: [PATCH] fix '100% CPU when paused' bug. debian 637546. But that's not the first report. --- select.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/select.c b/select.c index e7c397e..9adec9b 100644 --- a/select.c +++ b/select.c @@ -106,7 +106,8 @@ void select_loop(void) { do { if(anyset || paused) { selecttime.tv_sec = 0; - selecttime.tv_usec = 0; + // timeout is 0.1s: Almost instantaneous for human operators. + selecttime.tv_usec = 100000; rv = select(maxfd, (void *)&readfd, &writefd, NULL, &selecttime); -- 2.47.2