Ignore:
Timestamp:
Aug 7, 2008, 11:49:04 AM (17 years ago)
Author:
Paul Smedley
Message:

Update trunk to 3.2.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samba/source/winbindd/winbindd_dual.c

    r137 r141  
    105105};
    106106
     107static void async_request_fail(struct winbindd_async_request *state);
    107108static void async_main_request_sent(void *private_data, bool success);
    108109static void async_request_sent(void *private_data, bool success);
     
    130131        state->mem_ctx = mem_ctx;
    131132        state->child = child;
     133        state->reply_timeout_event = NULL;
    132134        state->request = request;
    133135        state->response = response;
     
    149151        if (!success) {
    150152                DEBUG(5, ("Could not send async request\n"));
    151 
    152                 state->response->length = sizeof(struct winbindd_response);
    153                 state->response->result = WINBINDD_ERROR;
    154                 state->continuation(state->private_data, False);
     153                async_request_fail(state);
    155154                return;
    156155        }
     
    499498        if (*domain->alt_name) {
    500499                flush_negative_conn_cache_for_domain(domain->alt_name);
     500        }
     501}
     502
     503/*
     504 * Parent winbindd process sets its own debug level first and then
     505 * sends a message to all the winbindd children to adjust their debug
     506 * level to that of parents.
     507 */
     508
     509void winbind_msg_debug(struct messaging_context *msg_ctx,
     510                         void *private_data,
     511                         uint32_t msg_type,
     512                         struct server_id server_id,
     513                         DATA_BLOB *data)
     514{
     515        struct winbindd_child *child;
     516
     517        DEBUG(10,("winbind_msg_debug: got debug message.\n"));
     518       
     519        debug_message(msg_ctx, private_data, MSG_DEBUG, server_id, data);
     520
     521        for (child = children; child != NULL; child = child->next) {
     522
     523                DEBUG(10,("winbind_msg_debug: sending message to pid %u.\n",
     524                        (unsigned int)child->pid));
     525
     526                messaging_send_buf(msg_ctx, pid_to_procid(child->pid),
     527                           MSG_DEBUG,
     528                           data->data,
     529                           strlen((char *) data->data) + 1);
    501530        }
    502531}
     
    10451074        messaging_deregister(winbind_messaging_context(),
    10461075                             MSG_WINBIND_DUMP_DOMAIN_LIST, NULL);
     1076        messaging_deregister(winbind_messaging_context(),
     1077                             MSG_DEBUG, NULL);
    10471078
    10481079        /* Handle online/offline messages. */
     
    10551086        messaging_register(winbind_messaging_context(), NULL,
    10561087                           MSG_DUMP_EVENT_LIST, child_msg_dump_event_list);
     1088        messaging_register(winbind_messaging_context(), NULL,
     1089                           MSG_DEBUG, debug_message);
    10571090
    10581091        if ( child->domain ) {
     
    11151148                /* check for signals */
    11161149                winbind_check_sigterm(false);
    1117                 winbind_check_sighup();
     1150                winbind_check_sighup(override_logfile ? NULL :
     1151                                child->logfilename);
    11181152
    11191153                run_events(winbind_event_context(), 0, NULL, NULL);
Note: See TracChangeset for help on using the changeset viewer.