The Samba-Bugzilla – Attachment 1523 Details for
Bug 1117
Reloading smb.conf hangs server if many smbd processes are running.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Spread the re-load of smb.conf
1117.diff (text/plain), 828 bytes, created by
Volker Lendecke
on 2005-10-18 04:21:01 UTC
(
hide
)
Description:
Spread the re-load of smb.conf
Filename:
MIME Type:
Creator:
Volker Lendecke
Created:
2005-10-18 04:21:01 UTC
Size:
828 bytes
patch
obsolete
>Index: smbd/process.c >=================================================================== >--- smbd/process.c (Revision 11138) >+++ smbd/process.c (Arbeitskopie) >@@ -1389,6 +1389,7 @@ > static time_t last_smb_conf_reload_time = 0; > static time_t last_printer_reload_time = 0; > time_t printcap_cache_time = (time_t)lp_printcap_cache_time(); >+ unsigned int spread; > > if(last_smb_conf_reload_time == 0) { > last_smb_conf_reload_time = t; >@@ -1410,7 +1411,9 @@ > mypid = getpid(); > } > >- if (reload_after_sighup || (t >= last_smb_conf_reload_time+SMBD_RELOAD_CHECK)) { >+ generate_random_buffer((unsigned char *)&spread, sizeof(spread)); >+ >+ if (reload_after_sighup || (t >= last_smb_conf_reload_time+SMBD_RELOAD_CHECK+(spread%120))) { > reload_services(True); > reload_after_sighup = False; > last_smb_conf_reload_time = t;
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 1117
: 1523