mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
added shutdown to smbd
J.F. (This used to be commit 51a5bbfee71e064c73283a090e9e922a31b1e21b)
This commit is contained in:
parent
3e0c6ded65
commit
14f0beb21c
@ -141,6 +141,11 @@ static BOOL open_sockets_inetd(void)
|
||||
return True;
|
||||
}
|
||||
|
||||
static void msg_exit_server(int msg_type, pid_t src, void *buf, size_t len)
|
||||
{
|
||||
exit_server("Got a SHUTDOWN message");
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
Open the socket communication.
|
||||
@ -242,6 +247,7 @@ max can be %d\n",
|
||||
|
||||
message_register(MSG_SMB_SAM_SYNC, msg_sam_sync);
|
||||
message_register(MSG_SMB_SAM_REPL, msg_sam_repl);
|
||||
message_register(MSG_SHUTDOWN, msg_exit_server);
|
||||
|
||||
/* now accept incoming connections - forking a new process
|
||||
for each incoming connection */
|
||||
|
Loading…
x
Reference in New Issue
Block a user