projects
/
irker.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1092757
)
Make idle loop work correctly with Eventlet and plain threads, with no 100% CPU busy...
author
Peter Scott
<peter@greplin.com>
Sun, 7 Oct 2012 05:23:26 +0000
(22:23 -0700)
committer
Peter Scott
<peter@greplin.com>
Sun, 7 Oct 2012 05:23:26 +0000
(22:23 -0700)
irkerd
patch
|
blob
|
history
diff --git
a/irkerd
b/irkerd
index d88d7e253f0a23c5f853d4ab3797e080b32614e9..0dd5835da97445a62edfa332ee77a2e6017cb463 100755
(executable)
--- 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: