1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-24 21:34:56 +03:00

use process_exists() not kill(pid, 0)

This commit is contained in:
Andrew Tridgell 0001-01-01 00:00:00 +00:00
parent 3aa7995660
commit 30048cff12

View File

@ -160,7 +160,7 @@ BOOL message_send_pid(pid_t pid, int msg_type, void *buf, size_t len, BOOL dupli
* and deleting again if the target is not present. JRA.
*/
if (kill(pid, 0) == -1) {
if (!process_exists(pid)) {
DEBUG(2,("message_send_pid: pid %d doesn't exist\n", (int)pid));
return False;
}