summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-11-17 00:02:16 +0000
committerAndrew Tridgell <tridge@samba.org>2000-11-17 00:02:16 +0000
commit2add9223231a710c7935fddd39f1a25b1a3c4462 (patch)
tree867321569bdd1e3921403eeaa1087502c02ce16c /source3/lib
parentcdac09614ef426092ed1b1de480fe90c3c4cdd83 (diff)
downloadsamba-2add9223231a710c7935fddd39f1a25b1a3c4462.tar.gz
samba-2add9223231a710c7935fddd39f1a25b1a3c4462.tar.bz2
samba-2add9223231a710c7935fddd39f1a25b1a3c4462.zip
use process_exists() not kill(pid, 0)
(This used to be commit 30048cff12e03c95ef43ba4ee16af1df2de9dbc8)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/messages.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c
index 0e2dfeffd6..0f3638ada2 100644
--- a/source3/lib/messages.c
+++ b/source3/lib/messages.c
@@ -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;
}