Changeset 668 for trunk/server/lib


Ignore:
Timestamp:
Nov 24, 2011, 6:19:16 PM (14 years ago)
Author:
Silvan Scherrer
Message:

Samba Server 3.5: sockets got not back to blocking, as fcntl is broken

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/lib/async_req/async_sock.c

    r658 r668  
    282282 done:
    283283        fcntl(fd, F_SETFL, state->old_sockflags);
     284#ifdef __OS2__ // if the old flags have blocking set we need to set it also (fcntl bug)
     285        if (!(state->old_sockflags & O_NONBLOCK)) {
     286                set_blocking(state->fd, true);
     287        }
     288#endif
    284289        return tevent_req_post(result, ev);
    285290}
     
    340345
    341346        fcntl(state->fd, F_SETFL, state->old_sockflags);
    342 
     347#ifdef __OS2__ // if the old flags have blocking set we need to set it also (fcntl bug)
     348        if (!(state->old_sockflags & O_NONBLOCK)) {
     349                set_blocking(state->fd, true);
     350        }
     351#endif
    343352        if (tevent_req_is_unix_error(req, &err)) {
    344353                *perrno = err;
Note: See TracChangeset for help on using the changeset viewer.