unix_msg: remove cookie from unix_msg_init
authorVolker Lendecke <vl@samba.org>
Sun, 14 Sep 2014 15:52:07 +0000 (17:52 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 13 Feb 2015 22:32:06 +0000 (23:32 +0100)
commit69f9ff7d82484803d589e6570e8989b49f3dde2c
tree92aa1a6f7cfd7842ffdc8495d850570eb52fb176
parenta3efb70c87b489967fbf0a0b6873325a6a49bfea
unix_msg: remove cookie from unix_msg_init

"pid" and "sock" are sufficient I guess as randomizers to distinguish messages.
In theory, a pid could be recycled very quickly, which might mix up in-flight
messages. But once a few messages have passed, "cookie" would be incremented as
another indicator of a fresh message.

Why? Remove messages_dgm dependency on samba-util

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/lib/messages_dgm.c
source3/lib/unix_msg/test_drain.c
source3/lib/unix_msg/test_source.c
source3/lib/unix_msg/tests.c
source3/lib/unix_msg/unix_msg.c
source3/lib/unix_msg/unix_msg.h