s3: Remove a call to procid_self()
authorVolker Lendecke <vl@samba.org>
Tue, 13 Dec 2011 09:56:32 +0000 (10:56 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 13 Dec 2011 10:00:55 +0000 (11:00 +0100)
source3/smbd/server.c

index 31b6fcad83b1495a12c60f72976ea65e75659d64..dc3a4d705c0ce4b1463f2f3e3a73c97f5cc4d9ed 100644 (file)
@@ -238,10 +238,11 @@ static void cleanup_timeout_fn(struct event_context *event_ctx,
                                void *private_data)
 {
        struct timed_event **cleanup_te = (struct timed_event **)private_data;
+       struct messaging_context *msg = smbd_messaging_context();
 
        DEBUG(1,("Cleaning up brl and lock database after unclean shutdown\n"));
-       message_send_all(smbd_messaging_context(), MSG_SMB_UNLOCK, NULL, 0, NULL);
-       messaging_send_buf(smbd_messaging_context(), procid_self(),
+       message_send_all(msg, MSG_SMB_UNLOCK, NULL, 0, NULL);
+       messaging_send_buf(msg, messaging_server_id(msg),
                                MSG_SMB_BRL_VALIDATE, NULL, 0);
        /* mark the cleanup as having been done */
        (*cleanup_te) = NULL;