Changeset 732 for branches/samba-3.5.x/source3/winbindd/winbindd_dual.c
- Timestamp:
- Nov 12, 2012, 4:35:55 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.5.x/source3/winbindd/winbindd_dual.c
r593 r732 135 135 struct tevent_req *subreq; 136 136 137 if ((state->child-> pid == 0) && (!fork_domain_child(state->child))) {137 if ((state->child->sock == -1) && (!fork_domain_child(state->child))) { 138 138 tevent_req_error(req, errno); 139 139 return; … … 165 165 TALLOC_FREE(subreq); 166 166 if (ret == -1) { 167 /* 168 * The basic parent/child communication broke, close 169 * our socket 170 */ 171 close(state->child->sock); 172 state->child->sock = -1; 167 173 tevent_req_error(req, err); 168 174 return; … … 503 509 } 504 510 511 child->sock = -1; 505 512 child->domain = domain; 506 513 child->table = table; … … 531 538 532 539 DLIST_REMOVE(children, child); 533 534 close(child->sock);535 child->sock = -1;536 540 child->pid = 0; 537 541 }
Note:
See TracChangeset
for help on using the changeset viewer.