summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/smbd/server.c4
1 files changed, 4 insertions, 0 deletions
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