1
0
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:
Jean-François Micouleau 2002-03-29 14:28:38 +00:00
parent 3e0c6ded65
commit 14f0beb21c

View File

@ -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 */