diff options
Diffstat (limited to 'source/web/startstop.c')
-rw-r--r-- | source/web/startstop.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/web/startstop.c b/source/web/startstop.c index 27ee7dd96e0..c56320c962b 100644 --- a/source/web/startstop.c +++ b/source/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); } |