Browse files


  • Loading branch information...
1 parent 630bbb5 commit 4f580dfaf6e4be924dda2f8a005b61b45eb0e848 @CMGS committed Nov 1, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 content/2011/
@@ -272,9 +272,9 @@ I’m specifically talking about eventlet here. In retrospect, this makes sense,
-Order matters. Ugh.
+###Order matters. Ugh.
Daemonize before you import gevent or at least before you call monkey.patch_all(). I didn’t look into this deeply, but what I gathered from a mailing list post or two is that gevent modifies a socket in python internals. When you daemonize, all open file descriptors are closed, so in children, the socket will be recreated in its unmodified form, which of course doesn’t work right with gevent. Gevent should handle this type of thing or at least provide a daemonize function that is compatible.

0 comments on commit 4f580df

Please sign in to comment.