diff options
Diffstat (limited to 'source3/web/startstop.c')
-rw-r--r-- | source3/web/startstop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/web/startstop.c b/source3/web/startstop.c index 9ffda5bb941..8f28748918f 100644 --- a/source3/web/startstop.c +++ b/source3/web/startstop.c @@ -121,11 +121,11 @@ void stop_winbindd(void) } #endif /* kill a specified process */ -void kill_pid(pid_t pid) +void kill_pid(struct process_id pid) { if (geteuid() != 0) return; - if (pid <= 0) return; + if (procid_to_pid(&pid) <= 0) return; - kill(pid, SIGTERM); + kill(procid_to_pid(&pid), SIGTERM); } |