[SCM] Samba Shared Repository - branch v3-3-test updated -
release-3-2-0pre2-4816-gc251502
Jeremy Allison
jra at samba.org
Tue Jan 13 23:43:42 GMT 2009
The branch, v3-3-test has been updated
via c2515026807e08c7836ef1bd6220bd7eab3a1a5b (commit)
from 0e4182d6fd49afe5b2629552e0b53c6e177275a9 (commit)
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-3-test
- Log -----------------------------------------------------------------
commit c2515026807e08c7836ef1bd6220bd7eab3a1a5b
Author: Jeremy Allison <jra at samba.org>
Date: Tue Jan 13 15:42:29 2009 -0800
From boyang - ensure we never "return" from a forked child, always _exit().
Jeremy.
-----------------------------------------------------------------------
Summary of changes:
source/winbindd/winbindd_cm.c | 6 +++---
source/winbindd/winbindd_dual.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source/winbindd/winbindd_cm.c b/source/winbindd/winbindd_cm.c
index fa28bfa..0102f4f 100644
--- a/source/winbindd/winbindd_cm.c
+++ b/source/winbindd/winbindd_cm.c
@@ -216,7 +216,7 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain)
if (!override_logfile) {
if (asprintf(&lfile, "%s/log.winbindd-dc-connect", get_dyn_LOGFILEBASE()) == -1) {
DEBUG(0, ("fork_child_dc_connect: out of memory.\n"));
- return false;
+ _exit(1);
}
}
@@ -226,7 +226,7 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain)
MSG_WINBIND_FAILED_TO_GO_ONLINE,
(uint8 *)domain->name,
strlen(domain->name)+1);
- _exit(0);
+ _exit(1);
}
SAFE_FREE(lfile);
@@ -238,7 +238,7 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain)
MSG_WINBIND_FAILED_TO_GO_ONLINE,
(uint8 *)domain->name,
strlen(domain->name)+1);
- _exit(0);
+ _exit(1);
}
if ((!get_dcs(mem_ctx, domain, &dcs, &num_dcs)) || (num_dcs == 0)) {
diff --git a/source/winbindd/winbindd_dual.c b/source/winbindd/winbindd_dual.c
index a20b628..5f9b250 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));
--
Samba Shared Repository
More information about the samba-cvs
mailing list