From 0abfd440319a8e8819532feb6893cec48c90fbac Mon Sep 17 00:00:00 2001 From: Jonathan Moore Liles Date: Tue, 6 Mar 2012 01:07:33 -0800 Subject: [PATCH] Sequencer: Fix signal handlers. --- sequencer/src/main.C | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sequencer/src/main.C b/sequencer/src/main.C index 5a4ec1f..0e15edd 100644 --- a/sequencer/src/main.C +++ b/sequencer/src/main.C @@ -29,7 +29,7 @@ #include "pattern.H" #include "phrase.H" - +#include #ifdef HAVE_XPM #include "FL/Fl.H" @@ -232,6 +232,10 @@ main ( int argc, char **argv ) (char**)icon_16x16, &p, &mask, NULL); #endif + ::signal( SIGTERM, sigterm_handler ); + ::signal( SIGHUP, sigterm_handler ); + ::signal( SIGINT, sigterm_handler ); + config.follow_playhead = true; config.record_mode = MERGE; song.play_mode = PATTERN;