1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

removed unnecessary process_exists() call in message_send_pid()

it slows us down and doesn't gain anything
(This used to be commit 30fb31a3ab)
This commit is contained in:
Andrew Tridgell
2001-01-15 01:47:00 +00:00
parent 552d6bce08
commit fc06a034e8

View File

@ -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;