« Previous | Next » 

Revision 376a8634

ID376a8634eaa71ade843c527cbabb447abf9fa0b7
Child 05f6f6a2

Added by Vangelis Koukis almost 13 years ago

Workaround libevent-dns fd lost after daemonizing

Currently, gevent uses libevent-dns for asynchornous DNS resolution,
which opens a socket upon initialization time. This fails when
becoming a daemon, leading to all DNS queries timing out, since all file
descriptors are being closed.

Since we can't get the fd reliably, leave all file descriptors open on
daemonization.

This has been fixed in gevent's trunk,
see https://code.google.com/p/gevent/issues/detail?id=2.

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences