Ignore:
Timestamp:
May 27, 2009, 9:09:42 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.2 branch to 3.2.8

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.2.x/source/lib/util.c

    r149 r232  
    10411041
    10421042bool reinit_after_fork(struct messaging_context *msg_ctx,
     1043                       struct event_context *ev_ctx,
    10431044                       bool parent_longlived)
    10441045{
     
    10571058        }
    10581059
    1059         /*
    1060          * For clustering, we need to re-init our ctdbd connection after the
    1061          * fork
    1062          */
    1063         status = messaging_reinit(msg_ctx);
    1064         if (!NT_STATUS_IS_OK(status)) {
    1065                 DEBUG(0,("messaging_reinit() failed: %s\n",
    1066                          nt_errstr(status)));
    1067                 return false;
     1060        if (msg_ctx) {
     1061                /*
     1062                 * For clustering, we need to re-init our ctdbd connection after the
     1063                 * fork
     1064                 */
     1065                status = messaging_reinit(msg_ctx);
     1066                if (!NT_STATUS_IS_OK(status)) {
     1067                        DEBUG(0,("messaging_reinit() failed: %s\n",
     1068                                 nt_errstr(status)));
     1069                        return false;
     1070                }
     1071        }
     1072
     1073        if (ev_ctx) {
     1074                event_context_reinit(ev_ctx);
    10681075        }
    10691076
Note: See TracChangeset for help on using the changeset viewer.