mirror of
https://github.com/transmission/transmission
synced 2024-12-24 00:34:04 +00:00
Whoops, fix signal handling for SIGQUIT and SIGTERM.
This commit is contained in:
parent
cb82ea8e26
commit
f106cce58f
1 changed files with 2 additions and 2 deletions
|
@ -306,11 +306,11 @@ setupsigs( struct event_base * base /* XXX */ UNUSED )
|
|||
/* XXX event_base_set( base, &ev_int ); */
|
||||
signal_add( &ev_int, NULL );
|
||||
|
||||
signal_set( &ev_quit, SIGINT, gotsig, NULL );
|
||||
signal_set( &ev_quit, SIGQUIT, gotsig, NULL );
|
||||
/* XXX event_base_set( base, &ev_quit ); */
|
||||
signal_add( &ev_quit, NULL );
|
||||
|
||||
signal_set( &ev_term, SIGINT, gotsig, NULL );
|
||||
signal_set( &ev_term, SIGTERM, gotsig, NULL );
|
||||
/* XXX event_base_set( base, &ev_term ); */
|
||||
signal_add( &ev_term, NULL );
|
||||
|
||||
|
|
Loading…
Reference in a new issue