mirror of
https://github.com/samba-team/samba.git
synced 2025-11-19 04:23:48 +03:00
r10656: BIG merge from trunk. Features not copied over
* \PIPE\unixinfo
* winbindd's {group,alias}membership new functions
* winbindd's lookupsids() functionality
* swat (trunk changes to be reverted as per discussion with Deryck)
(This used to be commit 939c3cb5d7)
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
4a2cc231d2
commit
54abd2aa66
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user