Changeset 751 for trunk/server/source3/smbd/server_exit.c
- Timestamp:
- Nov 29, 2012, 1:59:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/smbd/server_exit.c
r745 r751 84 84 const char *const reason) 85 85 { 86 bool had_open_conn = false;87 86 struct smbd_server_connection *sconn = smbd_server_conn; 88 87 … … 102 101 files_forall(sconn, log_writeable_file_fn, &found); 103 102 } 104 had_open_conn =conn_close_all(sconn);103 (void)conn_close_all(sconn); 105 104 invalidate_all_vuids(sconn); 106 105 } … … 176 175 dump_core(); 177 176 177 /* Notreached. */ 178 exit(1); 178 179 } else { 179 180 DEBUG(3,("Server exit (%s)\n", … … 185 186 } 186 187 187 /* if we had any open SMB connections when we exited then we 188 need to tell the parent smbd so that it can trigger a retry 189 of any locks we may have been holding or open files we were 190 blocking */ 191 if (had_open_conn) { 192 exit(1); 193 } else { 194 exit(0); 195 } 188 exit(0); 196 189 } 197 190
Note:
See TracChangeset
for help on using the changeset viewer.