1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-22 02:50:28 +03:00

s3-smbd: Pass ev_ctx to smbd_setup_sig_chld_handler().

This commit is contained in:
Andreas Schneider 2011-06-21 14:24:03 +02:00
parent 55a025e041
commit fa1bba26aa

View File

@ -327,12 +327,12 @@ static void smbd_sig_chld_handler(struct tevent_context *ev,
}
}
static void smbd_setup_sig_chld_handler(void)
static void smbd_setup_sig_chld_handler(struct tevent_context *ev_ctx)
{
struct tevent_signal *se;
se = tevent_add_signal(server_event_context(),
server_event_context(),
se = tevent_add_signal(ev_ctx,
ev_ctx, /* mem_ctx */
SIGCHLD, 0,
smbd_sig_chld_handler,
NULL);
@ -616,7 +616,7 @@ static bool open_sockets_smbd(struct smbd_parent_context *parent,
#endif
/* Stop zombies */
smbd_setup_sig_chld_handler();
smbd_setup_sig_chld_handler(ev_ctx);
/* use a reasonable default set of ports - listing on 445 and 139 */
if (!smb_ports) {
@ -1286,7 +1286,7 @@ extern void build_options(bool screen);
#endif
/* Stop zombies */
smbd_setup_sig_chld_handler();
smbd_setup_sig_chld_handler(ev_ctx);
smbd_process(smbd_server_conn);