summaryrefslogtreecommitdiffstats
path: root/source/lib/messages.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-01-15 01:47:00 +0000
committerAndrew Tridgell <tridge@samba.org>2001-01-15 01:47:00 +0000
commit30fb31a3ab05ab6bb6c89cb457e2216e34b963e6 (patch)
tree3c3463d8bc990202a633c3ef8c226a579eb3bf10 /source/lib/messages.c
parent5629b097d4f04ad45c66f270bd58f08d7c717353 (diff)
downloadsamba-30fb31a3ab05ab6bb6c89cb457e2216e34b963e6.tar.gz
samba-30fb31a3ab05ab6bb6c89cb457e2216e34b963e6.tar.xz
samba-30fb31a3ab05ab6bb6c89cb457e2216e34b963e6.zip
removed unnecessary process_exists() call in message_send_pid()
it slows us down and doesn't gain anything
Diffstat (limited to 'source/lib/messages.c')
-rw-r--r--source/lib/messages.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/source/lib/messages.c b/source/lib/messages.c
index 94c04cfa8e6..661a1ab0ef6 100644
--- a/source/lib/messages.c
+++ b/source/lib/messages.c
@@ -155,17 +155,6 @@ BOOL message_send_pid(pid_t pid, int msg_type, void *buf, size_t len, BOOL dupli
struct message_rec rec;
void *p;
- /*
- * Do an early check for process exists - saves adding into a tdb
- * and deleting again if the target is not present. JRA.
- */
-
- if (!process_exists(pid)) {
- DEBUG(2,("message_send_pid: pid %d doesn't exist\n", (int)pid));
- tdb_delete(tdb, message_key_pid(pid));
- return False;
- }
-
rec.msg_version = MESSAGE_VERSION;
rec.msg_type = msg_type;
rec.dest = pid;