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)
committerKarolin Seeger <kseeger@samba.org>
Fri, 29 May 2009 07:34:45 +0000 (09:34 +0200)
commit1f937c6a766d35b1d1f9fa52bbc4601eeeb9ebca
tree2d148e7f976108a8ae29ac7a730a9aa80f54717b
parentae42622ae88b286350d7333723e5878b1b22898e
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>
(cherry picked from commit 1c8f9892010ce8cc754089b25313c6bc8e622165)
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