Changeset 141 for trunk/samba/source/winbindd/winbindd_dual.c
- Timestamp:
- Aug 7, 2008, 11:49:04 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/source/winbindd/winbindd_dual.c
r137 r141 105 105 }; 106 106 107 static void async_request_fail(struct winbindd_async_request *state); 107 108 static void async_main_request_sent(void *private_data, bool success); 108 109 static void async_request_sent(void *private_data, bool success); … … 130 131 state->mem_ctx = mem_ctx; 131 132 state->child = child; 133 state->reply_timeout_event = NULL; 132 134 state->request = request; 133 135 state->response = response; … … 149 151 if (!success) { 150 152 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); 155 154 return; 156 155 } … … 499 498 if (*domain->alt_name) { 500 499 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 509 void 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); 501 530 } 502 531 } … … 1045 1074 messaging_deregister(winbind_messaging_context(), 1046 1075 MSG_WINBIND_DUMP_DOMAIN_LIST, NULL); 1076 messaging_deregister(winbind_messaging_context(), 1077 MSG_DEBUG, NULL); 1047 1078 1048 1079 /* Handle online/offline messages. */ … … 1055 1086 messaging_register(winbind_messaging_context(), NULL, 1056 1087 MSG_DUMP_EVENT_LIST, child_msg_dump_event_list); 1088 messaging_register(winbind_messaging_context(), NULL, 1089 MSG_DEBUG, debug_message); 1057 1090 1058 1091 if ( child->domain ) { … … 1115 1148 /* check for signals */ 1116 1149 winbind_check_sigterm(false); 1117 winbind_check_sighup(); 1150 winbind_check_sighup(override_logfile ? NULL : 1151 child->logfilename); 1118 1152 1119 1153 run_events(winbind_event_context(), 0, NULL, NULL);
Note:
See TracChangeset
for help on using the changeset viewer.