From: Eric S. Raymond Date: Sat, 6 Oct 2012 16:54:01 +0000 (-0400) Subject: Revert "Make the main process idle loop slightly less expensive." X-Git-Tag: 1.8~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8bbd8996e730ddd3bc2fe20506df702820086bf1;p=irker.git Revert "Make the main process idle loop slightly less expensive." sigpause() doesn't work with greenlets. --- 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: