diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-01-15 01:47:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-01-15 01:47:00 +0000 |
commit | fc06a034e88ebdd0b271078b26e607eca70fcdb0 (patch) | |
tree | 999f571c42183b1e811ba7679c99261961de7561 | |
parent | 552d6bce08fdf98c50c3dbc7b873a49bd72baac5 (diff) | |
download | samba-fc06a034e88ebdd0b271078b26e607eca70fcdb0.tar.gz samba-fc06a034e88ebdd0b271078b26e607eca70fcdb0.tar.bz2 samba-fc06a034e88ebdd0b271078b26e607eca70fcdb0.zip |
removed unnecessary process_exists() call in message_send_pid()
it slows us down and doesn't gain anything
(This used to be commit 30fb31a3ab05ab6bb6c89cb457e2216e34b963e6)
-rw-r--r-- | source3/lib/messages.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 94c04cfa8e..661a1ab0ef 100644 --- a/source3/lib/messages.c +++ b/source3/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; |