Skip to content

Commit

Permalink
MidiPlay: A small beautify
Browse files Browse the repository at this point in the history
  • Loading branch information
Wohlstand committed Sep 28, 2020
1 parent 4236c78 commit e8ee600
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions utils/midiplay/adlmidiplay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,13 +249,18 @@ static int stop = 0;
#ifndef HARDWARE_OPL3
static void sighandler(int dum)
{
if((dum == SIGINT)
|| (dum == SIGTERM)
#if !defined(_WIN32) && !defined(__WATCOMC__)
|| (dum == SIGHUP)
#endif
)
switch(dum)
{
case SIGINT:
case SIGTERM:
#ifndef _WIN32
case SIGHUP:
#endif
stop = 1;
break;
default:
break;
}
}
#endif

Expand Down

0 comments on commit e8ee600

Please sign in to comment.