Fix problem with closing 0-fds
authorWilfried Goesgens <dothebart@citadel.org>
Sat, 21 Jan 2012 22:11:09 +0000 (23:11 +0100)
committerWilfried Goesgens <dothebart@citadel.org>
Sat, 21 Jan 2012 22:11:09 +0000 (23:11 +0100)
commit51df62c4732353701b6e7ef05ba586be054fa92d
tree8c8e7d0637c007415424b576fbeac0bddbcf0936
parenta5f188c28c019b840ee82f9d1d143fb789bb83b3
Fix problem with closing 0-fds

  - add debugging to registering/unregistering DNS-Watchers
  - sanitize closing of filedescriptors; don't close 0-fd, and set to 0 after close.
citadel/event_client.c
citadel/event_client.h
citadel/modules/c-ares-dns/serv_c-ares-dns.c
citadel/modules/smtp/serv_smtpeventclient.c
citadel/sysdep.c