s3: Allow child processes to exit gracefully if we are out of fds
authorMarc VanHeyningen <marc.vanheyningen@isilon.com>
Tue, 5 May 2009 21:18:50 +0000 (21:18 +0000)
committerTim Prouty <tprouty@samba.org>
Wed, 27 May 2009 20:16:17 +0000 (13:16 -0700)
commita4887e250b84c321c75d54b9d3adf6fcf7c27fed
tree318c1079a6199d283bed94ee3733c9e32855922c
parent75de7c0e87cc5ecea1a7d7e9b0103a8cc2827895
s3: Allow child processes to exit gracefully if we are out of fds

When we run out of file descriptors for some reason, every new
connection forks a child that immediately panics causing smbd to
coredump.  This seems unnecessarily harsh; with this code change we
now catch that error and merely log a message about it and exit
without the core dump.

Signed-off-by: Tim Prouty <tprouty@samba.org>
source3/include/proto.h
source3/lib/util.c
source3/nmbd/asyncdns.c
source3/nmbd/nmbd.c
source3/printing/print_cups.c
source3/printing/printing.c
source3/smbd/server.c
source3/winbindd/winbindd.c
source3/winbindd/winbindd_dual.c