s3: More fix for smbd -i
authorVolker Lendecke <vl@samba.org>
Tue, 28 Feb 2012 21:36:06 +0000 (22:36 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 28 Feb 2012 22:36:15 +0000 (23:36 +0100)
We need a full re-initialize, otherwise we don't re-init the USR1
signal handler

source3/smbd/server.c

index 986eb214397ab2c1c25729f4127a60f3a214c81d..0fb7d16ef6025c09447337be0881748292ca7b86 100644 (file)
@@ -466,7 +466,7 @@ static void smbd_accept_connection(struct tevent_context *ev,
        }
 
        if (s->parent->interactive) {
-               tevent_re_initialise(ev);
+               reinit_after_fork(msg_ctx, sconn->ev_ctx, true);
                smbd_process(ev, sconn);
                exit_server_cleanly("end of interactive mode");
                return;