summaryrefslogtreecommitdiff
path: root/source3/web/startstop.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/web/startstop.c')
-rw-r--r--source3/web/startstop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/web/startstop.c b/source3/web/startstop.c
index 27ee7dd96e..c56320c962 100644
--- a/source3/web/startstop.c
+++ b/source3/web/startstop.c
@@ -75,7 +75,7 @@ void stop_smbd(void)
if (geteuid() != 0) return;
- if (pid == 0) return;
+ if (pid <= 0) return;
kill(pid, SIGTERM);
}
@@ -87,7 +87,7 @@ void stop_nmbd(void)
if (geteuid() != 0) return;
- if (pid == 0) return;
+ if (pid <= 0) return;
kill(pid, SIGTERM);
}