Changeset 862 for trunk/server/source3/smbd/process.c
- Timestamp:
- May 13, 2014, 11:39:04 AM (11 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 860
- Property svn:mergeinfo changed
-
trunk/server/source3/smbd/process.c
r751 r862 155 155 } 156 156 157 len = smb_len (buf_out) + 4;157 len = smb_len_large(buf_out) + 4; 158 158 159 159 ret = write_data(sconn->sock, buf_out+nwritten, len - nwritten); … … 923 923 DEBUG(10,("event_add_idle: %s %p\n", result->name, result->te)); 924 924 return result; 925 }926 927 static void smbd_sig_term_handler(struct tevent_context *ev,928 struct tevent_signal *se,929 int signum,930 int count,931 void *siginfo,932 void *private_data)933 {934 exit_server_cleanly("termination signal");935 }936 937 void smbd_setup_sig_term_handler(void)938 {939 struct tevent_signal *se;940 941 se = tevent_add_signal(smbd_event_context(),942 smbd_event_context(),943 SIGTERM, 0,944 smbd_sig_term_handler,945 NULL);946 if (!se) {947 exit_server("failed to setup SIGTERM handler");948 }949 }950 951 static void smbd_sig_hup_handler(struct tevent_context *ev,952 struct tevent_signal *se,953 int signum,954 int count,955 void *siginfo,956 void *private_data)957 {958 struct messaging_context *msg_ctx = talloc_get_type_abort(959 private_data, struct messaging_context);960 change_to_root_user();961 DEBUG(1,("Reloading services after SIGHUP\n"));962 reload_services(msg_ctx, smbd_server_conn->sock, False);963 if (am_parent) {964 pcap_cache_reload(ev, msg_ctx, &reload_pcap_change_notify);965 }966 }967 968 void smbd_setup_sig_hup_handler(struct tevent_context *ev,969 struct messaging_context *msg_ctx)970 {971 struct tevent_signal *se;972 973 se = tevent_add_signal(ev, ev, SIGHUP, 0, smbd_sig_hup_handler,974 msg_ctx);975 if (!se) {976 exit_server("failed to setup SIGHUP handler");977 }978 925 } 979 926 … … 2034 1981 */ 2035 1982 req->chain_outbuf = TALLOC_REALLOC_ARRAY( 2036 req, req->outbuf, uint8_t, smb_len(req->outbuf) + 4); 1983 req, req->outbuf, uint8_t, 1984 smb_len_large(req->outbuf) + 4); 2037 1985 if (req->chain_outbuf == NULL) { 2038 1986 smb_panic("talloc failed");
Note:
See TracChangeset
for help on using the changeset viewer.