From 790ad3d1a4d494f8e98883aa4e1c16777170e874 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 31 Aug 2010 23:16:50 +0200 Subject: s3: Remove two calls to procid_self() --- source3/smbd/process.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source3') diff --git a/source3/smbd/process.c b/source3/smbd/process.c index 9535d819dd..27f132e09c 100644 --- a/source3/smbd/process.c +++ b/source3/smbd/process.c @@ -2472,7 +2472,8 @@ static bool deadtime_fn(const struct timeval *now, void *private_data) return true; } DEBUG( 2, ( "Closing idle SMB2 connection\n" ) ); - messaging_send(sconn->msg_ctx, procid_self(), + messaging_send(sconn->msg_ctx, + messaging_server_id(sconn->msg_ctx), MSG_SHUTDOWN, &data_blob_null); return false; } @@ -2480,7 +2481,8 @@ static bool deadtime_fn(const struct timeval *now, void *private_data) if ((conn_num_open(sconn) == 0) || (conn_idle_all(sconn, now->tv_sec))) { DEBUG( 2, ( "Closing idle SMB1 connection\n" ) ); - messaging_send(sconn->msg_ctx, procid_self(), + messaging_send(sconn->msg_ctx, + messaging_server_id(sconn->msg_ctx), MSG_SHUTDOWN, &data_blob_null); return False; } -- cgit