projects
/
irker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b71e8c
)
Make the main process idle loop slightly less expensive.
author
Eric S. Raymond
<esr@thyrsus.com>
Fri, 5 Oct 2012 15:28:54 +0000
(11:28 -0400)
committer
Eric S. Raymond
<esr@thyrsus.com>
Fri, 5 Oct 2012 15:28:54 +0000
(11:28 -0400)
irkerd
patch
|
blob
|
history
diff --git
a/irkerd
b/irkerd
index 698aa36ea8078e9bef5982fe08366bf8fa7d3b29..877da0e4b7594eded063d9d93ec0938be7dd6589 100755
(executable)
--- a/
irkerd
+++ b/
irkerd
@@
-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: