summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-06-21 14:24:03 +0200
committerAndreas Schneider <asn@samba.org>2011-07-14 16:10:47 +0200
commitfa1bba26aae83b5412601e102f65a58ec7a146e4 (patch)
tree837469347bcd6863c39c043f9a65fe917f5a7244 /source3
parent55a025e0410e8105af42838ba2a4b8a7933d6dd0 (diff)
downloadsamba-fa1bba26aae83b5412601e102f65a58ec7a146e4.tar.gz
samba-fa1bba26aae83b5412601e102f65a58ec7a146e4.tar.bz2
samba-fa1bba26aae83b5412601e102f65a58ec7a146e4.zip
s3-smbd: Pass ev_ctx to smbd_setup_sig_chld_handler().
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/server.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 4991331a8f..82459c277e 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -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);