Sequencer: Fix signal handlers.

This commit is contained in:
Jonathan Moore Liles 2012-03-06 01:07:33 -08:00
parent e81270d74e
commit 0abfd44031
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,7 @@
#include "pattern.H" #include "pattern.H"
#include "phrase.H" #include "phrase.H"
#include <signal.h>
#ifdef HAVE_XPM #ifdef HAVE_XPM
#include "FL/Fl.H" #include "FL/Fl.H"
@ -232,6 +232,10 @@ main ( int argc, char **argv )
(char**)icon_16x16, &p, &mask, NULL); (char**)icon_16x16, &p, &mask, NULL);
#endif #endif
::signal( SIGTERM, sigterm_handler );
::signal( SIGHUP, sigterm_handler );
::signal( SIGINT, sigterm_handler );
config.follow_playhead = true; config.follow_playhead = true;
config.record_mode = MERGE; config.record_mode = MERGE;
song.play_mode = PATTERN; song.play_mode = PATTERN;