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>
Wed, 27 Oct 2010 07:33:37 +0000 (09:33 +0200)
metze

source4/libcli/resolve/dns_ex.c

index 35e2ad74c31cc4113d07c3e4acdc4989d66be6b4..11f609bcbe3e7c3e866fa3b3af7a09be81c81614 100644 (file)
@@ -507,7 +507,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(errno));
                return c;