From 8bbd8996e730ddd3bc2fe20506df702820086bf1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" <esr@thyrsus.com> Date: Sat, 6 Oct 2012 12:54:01 -0400 Subject: [PATCH] Revert "Make the main process idle loop slightly less expensive." sigpause() doesn't work with greenlets. --- irkerd | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/irkerd b/irkerd index 59efc7b..9aeb4ea 100755 --- a/irkerd +++ b/irkerd @@ -62,7 +62,7 @@ except ImportError: CONNECTION_MAX = 200 green_threads = False -import sys, getopt, urlparse, time, random, socket, signal +import sys, getopt, urlparse, time, random, socket import threading, Queue, SocketServer import irc.client, logging try: @@ -516,7 +516,8 @@ if __name__ == '__main__': server.setDaemon(True) server.start() try: - signal.pause() + while True: + time.sleep(10) except KeyboardInterrupt: raise SystemExit(1) except socket.error, e: -- 2.26.2