summaryrefslogtreecommitdiff
path: root/source3/web/startstop.c
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2003-04-24 02:34:27 +0000
committerJohn Terpstra <jht@samba.org>2003-04-24 02:34:27 +0000
commit5b4ee77a5fefe3a22a98519a1dceaf9981a14e8d (patch)
treed6b4a498344c5b7b13815a93b384c7c268ae5b4b /source3/web/startstop.c
parent8bc3f10c1af0dd3f624c9e68ed299b57d03bd3a3 (diff)
downloadsamba-5b4ee77a5fefe3a22a98519a1dceaf9981a14e8d.tar.gz
samba-5b4ee77a5fefe3a22a98519a1dceaf9981a14e8d.tar.bz2
samba-5b4ee77a5fefe3a22a98519a1dceaf9981a14e8d.zip
Added patch from Stephen Roylance.
(This used to be commit 308e3848622de0da7f1b73369c0429ac54d672ef)
Diffstat (limited to 'source3/web/startstop.c')
-rw-r--r--source3/web/startstop.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/web/startstop.c b/source3/web/startstop.c
index c6babff954..93e8650c2b 100644
--- a/source3/web/startstop.c
+++ b/source3/web/startstop.c
@@ -22,8 +22,6 @@
#include "../web/swat_proto.h"
#include "dynconfig.h"
-/** Need to wait for daemons to startup */
-#define SLEEP_TIME 3
/** Startup smbd from web interface. */
void start_smbd(void)
@@ -33,7 +31,6 @@ void start_smbd(void)
if (geteuid() != 0) return;
if (fork()) {
- sleep(SLEEP_TIME);
return;
}
@@ -54,7 +51,6 @@ void start_nmbd(void)
if (geteuid() != 0) return;
if (fork()) {
- sleep(SLEEP_TIME);
return;
}
@@ -75,7 +71,6 @@ void start_winbindd(void)
if (geteuid() != 0) return;
if (fork()) {
- sleep(SLEEP_TIME);
return;
}
@@ -133,5 +128,4 @@ void kill_pid(pid_t pid)
if (pid <= 0) return;
kill(pid, SIGTERM);
- sleep(SLEEP_TIME);
}