Changeset 1921

Show
Ignore:
Timestamp:
08/31/08 18:33:02 (3 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1919 r1921  
     12008-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 
    162008-08-31  Taher Shihadeh <taher@unixwars.com> 
    27 
  • cherokee/trunk/cherokee/main_worker.c

    r1918 r1921  
    100100 
    101101static void 
    102 restart_server (int code) 
     102graceful_restart (int code) 
    103103{        
     104        /* Graceful restart sent by the 'guardian' 
     105         */ 
    104106        UNUSED(code); 
    105107        printf ("Handling HUP signal..\n"); 
     
    138140#endif 
    139141#ifdef SIGHUP 
    140         signal (SIGHUP, restart_server); 
    141 #endif 
    142 #ifdef SIGUSR1 
    143         signal (SIGUSR1, reopen_log_files); 
     142        signal (SIGHUP, graceful_restart); 
     143#endif 
     144#ifdef SIGUSR2 
     145        signal (SIGUSR2, reopen_log_files); 
    144146#endif 
    145147#ifdef SIGSEGV 
     
    151153#ifdef SIGTERM 
    152154        signal (SIGTERM, prepare_to_die); 
     155#endif 
     156#ifdef SIGINT 
     157        signal (SIGINT, prepare_to_die); 
    153158#endif 
    154159