diff options
author | todd stecher <todd.stecher@gmail.com> | 2009-02-12 00:11:38 -0800 |
---|---|---|
committer | Steven Danneman <steven.danneman@isilon.com> | 2009-02-18 18:08:33 -0800 |
commit | 03421944b2bd82caf13946b745e4d634f0559f82 (patch) | |
tree | e9a6bc17f5703b2d5d1532e3f5dfd9662a729e4a /source3/smbd | |
parent | c441f58dedc465f59060296815a0bc7f9aeb743f (diff) | |
download | samba-03421944b2bd82caf13946b745e4d634f0559f82.tar.gz samba-03421944b2bd82caf13946b745e4d634f0559f82.tar.bz2 samba-03421944b2bd82caf13946b745e4d634f0559f82.zip |
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.
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 4 |
1 files changed, 4 insertions, 0 deletions
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. |