mirror of
https://github.com/samba-team/samba.git
synced 2025-03-20 22:50:26 +03:00
Added dummy handlers for SAM_SYNC and SAM_REPL messages.
(This used to be commit 08e05f1b3c2d5767e8f8f0343fc0ea90c786eac0)
This commit is contained in:
parent
cd0a9f6fcc
commit
cb9b39dd82
@ -80,6 +80,31 @@ static void killkids(void)
|
||||
if(am_parent) kill(0,SIGTERM);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
process a sam sync message - not sure whether to do this here or
|
||||
somewhere else
|
||||
****************************************************************************/
|
||||
static void msg_sam_sync(int msg_type, pid_t pid, void *buf, size_t len)
|
||||
{
|
||||
DEBUG(10, ("** sam sync message received, ignoring\n"));
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
process a sam sync replicate message - not sure whether to do this here or
|
||||
somewhere else
|
||||
****************************************************************************/
|
||||
static void msg_sam_repl(int msg_type, pid_t pid, void *buf, size_t len)
|
||||
{
|
||||
uint32 low_serial;
|
||||
|
||||
if (len != sizeof(uint32))
|
||||
return;
|
||||
|
||||
low_serial = *((uint32 *)buf);
|
||||
|
||||
DEBUG(3, ("received sam replication message, serial = 0x%04x\n",
|
||||
low_serial));
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
open the socket communication
|
||||
@ -196,6 +221,11 @@ max can be %d\n",
|
||||
FD_SET(s,&listen_set);
|
||||
}
|
||||
|
||||
/* Listen to messages */
|
||||
|
||||
message_register(MSG_SMB_SAM_SYNC, msg_sam_sync);
|
||||
message_register(MSG_SMB_SAM_REPL, msg_sam_repl);
|
||||
|
||||
/* now accept incoming connections - forking a new process
|
||||
for each incoming connection */
|
||||
DEBUG(2,("waiting for a connection\n"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user