/[cvs]/eggdrop1.8/src/main.c
ViewVC logotype

Diff of /eggdrop1.8/src/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.6 by pseudo, Sat Oct 23 11:16:12 2010 UTC revision 1.7 by thommey, Thu Jan 27 01:41:08 2011 UTC
# Line 382  static void got_term(int z) Line 382  static void got_term(int z)
382    /* Now we die by default on sigterm, but scripts have the chance to    /* Now we die by default on sigterm, but scripts have the chance to
383     * catch the event themselves and cancel shutdown by returning 1     * catch the event themselves and cancel shutdown by returning 1
384     */     */
385    if (check_tcl_event("sigterm"))    if (check_tcl_signal("sigterm"))
386      return;      return;
387    kill_bot("ACK, I've been terminated!", "TERMINATE SIGNAL -- SIGNING OFF");    kill_bot("ACK, I've been terminated!", "TERMINATE SIGNAL -- SIGNING OFF");
388  }  }
389    
390  static void got_quit(int z)  static void got_quit(int z)
391  {  {
392    if (check_tcl_event("sigquit"))    if (check_tcl_signal("sigquit"))
393      return;      return;
394    putlog(LOG_MISC, "*", "Received QUIT signal: restarting...");    putlog(LOG_MISC, "*", "Received QUIT signal: restarting...");
395    do_restart = -1;    do_restart = -1;
# Line 399  static void got_quit(int z) Line 399  static void got_quit(int z)
399  static void got_hup(int z)  static void got_hup(int z)
400  {  {
401    write_userfile(-1);    write_userfile(-1);
402    if (check_tcl_event("sighup"))    if (check_tcl_signal("sighup"))
403      return;      return;
404    putlog(LOG_MISC, "*", "Received HUP signal: rehashing...");    putlog(LOG_MISC, "*", "Received HUP signal: rehashing...");
405    do_restart = -2;    do_restart = -2;
# Line 419  static void got_alarm(int z) Line 419  static void got_alarm(int z)
419   */   */
420  static void got_ill(int z)  static void got_ill(int z)
421  {  {
422    check_tcl_event("sigill");    check_tcl_signal("sigill");
423  #ifdef DEBUG_CONTEXT  #ifdef DEBUG_CONTEXT
424    putlog(LOG_MISC, "*", "* Context: %s/%d [%s]", cx_file[cx_ptr],    putlog(LOG_MISC, "*", "* Context: %s/%d [%s]", cx_file[cx_ptr],
425           cx_line[cx_ptr], (cx_note[cx_ptr][0]) ? cx_note[cx_ptr] : "");           cx_line[cx_ptr], (cx_note[cx_ptr][0]) ? cx_note[cx_ptr] : "");

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23