summaryrefslogtreecommitdiff
path: root/source3/web/startstop.c
diff options
context:
space:
mode:
authorJohn Terpstra <jht@samba.org>2003-04-24 02:35:00 +0000
committerJohn Terpstra <jht@samba.org>2003-04-24 02:35:00 +0000
commit8f6e88dbb6936abdb62a90a6bb0ef947ec8c9bb6 (patch)
treece9ade0408495b75f8a6cbeac0ea9d1e0ed0d5e6 /source3/web/startstop.c
parent488eacdcda71fe20c724fc80a85b4db4458e4093 (diff)
downloadsamba-8f6e88dbb6936abdb62a90a6bb0ef947ec8c9bb6.tar.gz
samba-8f6e88dbb6936abdb62a90a6bb0ef947ec8c9bb6.tar.bz2
samba-8f6e88dbb6936abdb62a90a6bb0ef947ec8c9bb6.zip
Added patch from Stephen Roylance.
(This used to be commit 71369f90890eeca399fec55d978a5dd4a13f077f)
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);
}