s4:libcli/resolve/dns_ex: make use of double_fork() to avoid SIGCHLD problems.
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Oct 2010 22:37:45 +0000 (00:37 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 4 Jun 2019 11:15:16 +0000 (13:15 +0200)
metze

source4/libcli/resolve/dns_ex.c

index 86eeb5f5921eef2a166eb26561a8e868b2921811..5084116ff10b33b03e2385968fb6fa2c3d1cfcc5 100644 (file)
@@ -612,7 +612,7 @@ struct composite_context *resolve_name_dns_ex_send(TALLOC_CTX *mem_ctx,
        }
        tevent_fd_set_auto_close(state->fde);
 
-       state->child = fork();
+       state->child = double_fork(NULL);
        if (state->child == (pid_t)-1) {
                composite_error(c, map_nt_error_from_unix_common(errno));
                return c;