Changeset 2316

Show
Ignore:
Timestamp:
05/12/13 16:14:32 (7 years ago)
Author:
jwoithe
Message:

ffado-dbus-server: trap SIGTERM and process as we have been doing for SIGINT. This means the behaviour of ffado-dbus-server is the same regardless of whether it's killed with Ctrl-C via the keyboard or with the TERM signal (as can happen during system shutdown for example). Patch from nils in ticket 369.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/support/dbus/ffado-dbus-server.cpp

    r1738 r2316  
    310310 
    311311    signal (SIGINT, sighandler); 
    312      
     312    signal (SIGTERM, sighandler); 
     313 
    313314    DBus::_init_threading(); 
    314315 
     
    348349 
    349350    signal (SIGINT, SIG_DFL); 
     351    signal (SIGTERM, SIG_DFL); 
    350352 
    351353    printMessage("server stopped\n");