Changeset 1921
- Timestamp:
- 08/31/08 18:33:02 (3 months ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/main_worker.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r1919 r1921 1 2008-08-31 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * cherokee/main_worker.c: Updates the signals. There were not 4 coherent with the signals handled by main.c. 5 1 6 2008-08-31 Taher Shihadeh <taher@unixwars.com> 2 7 cherokee/trunk/cherokee/main_worker.c
r1918 r1921 100 100 101 101 static void 102 restart_server(int code)102 graceful_restart (int code) 103 103 { 104 /* Graceful restart sent by the 'guardian' 105 */ 104 106 UNUSED(code); 105 107 printf ("Handling HUP signal..\n"); … … 138 140 #endif 139 141 #ifdef SIGHUP 140 signal (SIGHUP, restart_server);141 #endif 142 #ifdef SIGUSR 1143 signal (SIGUSR 1, reopen_log_files);142 signal (SIGHUP, graceful_restart); 143 #endif 144 #ifdef SIGUSR2 145 signal (SIGUSR2, reopen_log_files); 144 146 #endif 145 147 #ifdef SIGSEGV … … 151 153 #ifdef SIGTERM 152 154 signal (SIGTERM, prepare_to_die); 155 #endif 156 #ifdef SIGINT 157 signal (SIGINT, prepare_to_die); 153 158 #endif 154 159