Skip to content
Snippets Groups Projects
Commit 1b71124f authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Make the main process idle loop slightly less expensive.

parent 4b71e8c4
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,7 @@ except ImportError:
CONNECTION_MAX = 200
green_threads = False
import sys, getopt, urlparse, time, random, socket
import sys, getopt, urlparse, time, random, socket, signal
import threading, Queue, SocketServer
import irc.client, logging
try:
......@@ -486,8 +486,7 @@ if __name__ == '__main__':
server.setDaemon(True)
server.start()
try:
while True:
time.sleep(10)
signal.pause()
except KeyboardInterrupt:
raise SystemExit(1)
except socket.error, e:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment