summaryrefslogtreecommitdiffstats
path: root/source/winbindd/winbindd_dual.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-01-13 15:42:29 -0800
committerKarolin Seeger <kseeger@samba.org>2009-01-20 14:16:45 +0100
commit1d5ff6d55091d430e76722223ea6c8204b55398e (patch)
tree0b4b38b454b62e8d156f8706fe1fae279aac5dd2 /source/winbindd/winbindd_dual.c
parentcaed80e66252222f99f9e85223e9ca0378104ba8 (diff)
downloadsamba-1d5ff6d55091d430e76722223ea6c8204b55398e.tar.gz
samba-1d5ff6d55091d430e76722223ea6c8204b55398e.tar.xz
samba-1d5ff6d55091d430e76722223ea6c8204b55398e.zip
From boyang - ensure we never "return" from a forked child, always _exit().
Jeremy. (cherry picked from commit c2515026807e08c7836ef1bd6220bd7eab3a1a5b)
Diffstat (limited to 'source/winbindd/winbindd_dual.c')
-rw-r--r--source/winbindd/winbindd_dual.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c
index a20b628c6b9..5f9b2505271 100644
--- a/source/winbindd/winbindd_dual.c
+++ b/source/winbindd/winbindd_dual.c
@@ -1393,7 +1393,7 @@ static bool fork_domain_child(struct winbindd_child *child)
DEBUG(0,("select error occured\n"));
TALLOC_FREE(frame);
perror("select");
- return False;
+ _exit(1);
}
/* fetch a request from the main daemon */
@@ -1401,7 +1401,7 @@ static bool fork_domain_child(struct winbindd_child *child)
if (state.finished) {
/* we lost contact with our parent */
- exit(0);
+ _exit(0);
}
DEBUG(4,("child daemon request %d\n", (int)state.request.cmd));