Ignore:
Timestamp:
Nov 12, 2012, 4:35:55 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: update branche to 3.5.12

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.5.x/source3/winbindd/winbindd_dual.c

    r593 r732  
    135135        struct tevent_req *subreq;
    136136
    137         if ((state->child->pid == 0) && (!fork_domain_child(state->child))) {
     137        if ((state->child->sock == -1) && (!fork_domain_child(state->child))) {
    138138                tevent_req_error(req, errno);
    139139                return;
     
    165165        TALLOC_FREE(subreq);
    166166        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;
    167173                tevent_req_error(req, err);
    168174                return;
     
    503509        }
    504510
     511        child->sock = -1;
    505512        child->domain = domain;
    506513        child->table = table;
     
    531538
    532539        DLIST_REMOVE(children, child);
    533 
    534         close(child->sock);
    535         child->sock = -1;
    536540        child->pid = 0;
    537541}
Note: See TracChangeset for help on using the changeset viewer.