From: Peter Scott Date: Sun, 7 Oct 2012 05:23:26 +0000 (-0700) Subject: Make idle loop work correctly with Eventlet and plain threads, with no 100% CPU busy... X-Git-Tag: 1.9~24^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=34e8d743b9d1ed60672bf586a8bbe2ef55b958cd;p=irker.git Make idle loop work correctly with Eventlet and plain threads, with no 100% CPU busy loop. --- diff --git a/irkerd b/irkerd index d88d7e2..0dd5835 100755 --- a/irkerd +++ b/irkerd @@ -521,11 +521,8 @@ if __name__ == '__main__': server.setDaemon(True) server.start() try: - if green_threads: - while True: - eventlet.sleep() - else: - signal.pause() + while True: + time.sleep(10) except KeyboardInterrupt: raise SystemExit(1) except socket.error, e: