From 849f72b254ee52501ba46e8419938d3bf5e31900 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 4 Jul 2010 16:51:06 +0200 Subject: s3: Create a unique id for the smbd parent --- source3/smbd/server.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source3/smbd/server.c b/source3/smbd/server.c index f30d761865..b870fa7b9d 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -808,6 +808,7 @@ extern void build_options(bool screen); struct smbd_parent_context *parent = NULL; TALLOC_CTX *frame = talloc_stackframe(); /* Setup tos. */ NTSTATUS status; + uint64_t unique_id; smbd_init_globals(); @@ -985,6 +986,9 @@ extern void build_options(bool screen); become_daemon(Fork, no_process_group, log_stdout); } + generate_random_buffer((uint8_t *)&unique_id, sizeof(unique_id)); + set_my_unique_id(unique_id); + #if HAVE_SETPGID /* * If we're interactive we want to set our own process group for -- cgit