From 2ad87313415b4ec5c9feac7ac9649a071adf8125 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 5 Sep 2006 07:43:49 +0000 Subject: r18066: It's a bit pointless to send ourselves a signal just to check if we exist :-) Volker (This used to be commit 44105ff2ffa726d2961cecdabbd2056f243ad914) --- source3/lib/util.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/lib/util.c') diff --git a/source3/lib/util.c b/source3/lib/util.c index d650d0ed8b..1a75c11e9a 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1474,6 +1474,10 @@ BOOL same_net(struct in_addr ip1,struct in_addr ip2,struct in_addr mask) BOOL process_exists(const struct process_id pid) { + if (procid_is_me(&pid)) { + return True; + } + if (!procid_is_local(&pid)) { /* This *SEVERELY* needs fixing. */ return True; -- cgit