Changeset 12674


Ignore:
Timestamp:
Aug 13, 2011, 1:59:50 PM (10 years ago)
Author:
jordan
Message:

(trunk gtk) minor tweak to signal_handler()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/main.c

    r12672 r12674  
    462462        raise( sig );
    463463    }
    464     else switch( sig )
    465     {
    466         case SIGINT:
    467         case SIGTERM:
    468             g_message( _( "Got signal %d; trying to shut down cleanly. Do it again if it gets stuck." ), sig );
    469             gtr_actions_handler( "quit", sighandler_cbdata );
    470             break;
    471 
    472         default:
    473             g_message( "unhandled signal" );
    474             break;
     464    else if(( sig == SIGINT ) || ( sig == SIGTERM ))
     465    {
     466        g_message( _( "Got signal %d; trying to shut down cleanly. Do it again if it gets stuck." ), sig );
     467        gtr_actions_handler( "quit", sighandler_cbdata );
    475468    }
    476469}
Note: See TracChangeset for help on using the changeset viewer.