From 03421944b2bd82caf13946b745e4d634f0559f82 Mon Sep 17 00:00:00 2001 From: todd stecher Date: Thu, 12 Feb 2009 00:11:38 -0800 Subject: S3: Stop creating SMBD cores when failing to create a pipe. This was uncovered when the MAX FD limit was hit, causing an instant core and invoking error reporting. This fix causes SMBD to exit, but without building a core. --- source3/smbd/server.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 76dab96ad9..e8ccba0873 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -694,6 +694,10 @@ static void smbd_parent_loop(struct smbd_parent_context *parent) continue; } + /* socket error */ + if (num < 0) + exit_server_cleanly("socket error"); + /* If the idle timeout fired and we don't have any connected * users, exit gracefully. We should be running under a process * controller that will restart us if necessry. -- cgit