Changeset 860 for vendor/current/source3/printing/spoolssd.c
- Timestamp:
- May 12, 2014, 8:58:38 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/printing/spoolssd.c
r740 r860 72 72 DEBUG(10, ("Got message saying smb.conf was updated. Reloading.\n")); 73 73 change_to_root_user(); 74 spoolss_reopen_logs(); 75 } 76 77 static void spoolss_pcap_updated(struct messaging_context *msg, 78 void *private_data, 79 uint32_t msg_type, 80 struct server_id server_id, 81 DATA_BLOB *data) 82 { 83 struct tevent_context *ev_ctx = talloc_get_type_abort(private_data, 84 struct tevent_context); 85 86 DEBUG(10, ("Got message saying pcap was updated. Reloading.\n")); 87 change_to_root_user(); 74 88 reload_printers(ev_ctx, msg); 75 spoolss_reopen_logs();76 89 } 77 90 … … 112 125 change_to_root_user(); 113 126 DEBUG(1,("Reloading printers after SIGHUP\n")); 114 reload_printers(ev, msg_ctx);115 127 spoolss_reopen_logs(); 116 128 } … … 199 211 messaging_register(msg_ctx, ev_ctx, 200 212 MSG_SMB_CONF_UPDATED, smb_conf_updated); 213 messaging_register(msg_ctx, ev_ctx, 214 MSG_PRINTER_PCAP, spoolss_pcap_updated); 201 215 202 216 /*
Note:
See TracChangeset
for help on using the changeset viewer.