Sequencer: Fix signal handlers.
This commit is contained in:
parent
e81270d74e
commit
0abfd44031
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue