diff options
author | Volker Lendecke <vlendec@samba.org> | 2006-09-05 07:43:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:43:25 -0500 |
commit | 2ad87313415b4ec5c9feac7ac9649a071adf8125 (patch) | |
tree | 7ac347b5f7e67a83ab4a5a0c030b643543daf376 | |
parent | 958576623f7b715533e20e232536f93555f6bdc2 (diff) | |
download | samba-2ad87313415b4ec5c9feac7ac9649a071adf8125.tar.gz samba-2ad87313415b4ec5c9feac7ac9649a071adf8125.tar.bz2 samba-2ad87313415b4ec5c9feac7ac9649a071adf8125.zip |
r18066: It's a bit pointless to send ourselves a signal just to check if we exist :-)
Volker
(This used to be commit 44105ff2ffa726d2961cecdabbd2056f243ad914)
-rw-r--r-- | source3/lib/util.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |