Changeset 862 for trunk/server/source3/smbd/server.c
- Timestamp:
- May 13, 2014, 11:39:04 AM (12 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
source3/smbd/server.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 860
- Property svn:mergeinfo changed
-
trunk/server/source3/smbd/server.c
r845 r862 21 21 along with this program. If not, see <http://www.gnu.org/licenses/>. 22 22 */ 23 #ifdef __OS2__24 #define INCL_DOSEXCEPTIONS25 #define INCL_DOSPROCESS26 #define INCL_DOSMODULEMGR27 #define INCL_LOADEXCEPTQ28 #define INCL_FORKEXCEPTQ29 #include "os2.h"30 #include "exceptq.h"31 #undef FILE_CREATE32 #undef FILE_OPEN33 #endif34 23 35 24 #include "includes.h" … … 120 109 change_to_root_user(); 121 110 reload_services(msg, smbd_server_conn->sock, False); 122 if (am_parent) { 123 pcap_cache_reload(ev_ctx, msg, 124 &reload_pcap_change_notify); 125 } 111 /* printer reload triggered by background printing process */ 126 112 } 127 113 … … 143 129 reload_printers(ev_ctx, msg); 144 130 } 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 145 182 146 183 /******************************************************************* … … 784 821 smb_stat_cache_delete); 785 822 messaging_register(msg_ctx, NULL, MSG_DEBUG, smbd_msg_debug); 786 messaging_register(msg_ctx, server_event_context(), MSG_PRINTER_PCAP,787 smb_pcap_updated);788 823 brl_register_msgs(msg_ctx); 789 824 … … 909 944 NTSTATUS status; 910 945 911 #ifdef __OS2__912 EXCEPTIONREGISTRATIONRECORD ExRegRec;913 LoadExceptq(&ExRegRec, NULL, NULL);914 #endif915 946 /* 916 947 * Do this before any other talloc operation … … 1264 1295 exit(1); 1265 1296 1266 /* Publish nt printers, this requires a working winreg pipe */1267 pcap_cache_reload(server_event_context(), smbd_messaging_context(),1268 &reload_printers);1269 1270 1297 /* only start the background queue daemon if we are 1271 1298 running as a daemon -- bad things will happen if … … 1275 1302 if (is_daemon && !interactive 1276 1303 && lp_parm_bool(-1, "smbd", "backgroundqueue", true)) { 1277 start_background_queue(smbd_event_context(), 1278 smbd_messaging_context()); 1304 /* background queue is responsible for printcap cache updates */ 1305 messaging_register(smbd_server_conn->msg_ctx, 1306 smbd_event_context(), 1307 MSG_PRINTER_PCAP, smb_pcap_updated); 1308 start_background_queue(server_event_context(), 1309 smbd_server_conn->msg_ctx); 1310 } else { 1311 DEBUG(3, ("running without background printer process, dynamic " 1312 "printer updates disabled\n")); 1313 /* Publish nt printers, this requires a working winreg pipe */ 1314 pcap_cache_reload(server_event_context(), 1315 smbd_messaging_context(), 1316 &reload_printers_full); 1279 1317 } 1280 1318 … … 1335 1373 exit_server_cleanly(NULL); 1336 1374 TALLOC_FREE(frame); 1337 #ifdef __OS2__1338 UninstallExceptq(&ExRegRec);1339 #endif1340 1375 return(0); 1341 1376 }
Note:
See TracChangeset
for help on using the changeset viewer.
