The Samba-Bugzilla – Attachment 4303 Details for
Bug 6476
more then 3000 smbd-zomies in memory
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for 3.3
look (text/plain), 1.13 KB, created by
Jeremy Allison
on 2009-06-17 16:59:56 UTC
(
hide
)
Description:
Patch for 3.3
Filename:
MIME Type:
Creator:
Jeremy Allison
Created:
2009-06-17 16:59:56 UTC
Size:
1.13 KB
patch
obsolete
>diff --git a/source/smbd/server.c b/source/smbd/server.c >index 2415aeb..e0f86a6 100644 >--- a/source/smbd/server.c >+++ b/source/smbd/server.c >@@ -355,10 +355,6 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_ > struct dns_reg_state * dns_reg = NULL; > unsigned dns_port = 0; > >- if (!is_daemon) { >- return open_sockets_inetd(); >- } >- > #ifdef HAVE_ATEXIT > { > static int atexit_set; >@@ -369,6 +365,17 @@ static bool open_sockets_smbd(bool is_daemon, bool interactive, const char *smb_ > } > #endif > >+ if (!is_daemon) { >+ /* >+ * Stop zombies the old way. >+ * We aren't forking any new >+ * 'normal' connections when >+ * run from [x]inetd. >+ */ >+ CatchChild(); >+ return open_sockets_inetd(); >+ } >+ > /* Stop zombies */ > CatchSignal(SIGCLD, sig_cld); > >@@ -1252,6 +1259,10 @@ extern void build_options(bool screen); > BlockSignals(False, SIGUSR1); > BlockSignals(False, SIGTERM); > >+ /* Ensure we leave no zombies until we >+ * correctly set up child handling below. */ >+ CatchChild(); >+ > /* we want total control over the permissions on created files, > so set our umask to 0 */ > umask(0);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 6476
:
4296
|
4301
| 4303