From ce43552ebb4c405d0ff8e10d468143d12c64085e Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Mon, 12 Mar 2012 04:05:15 +0000 Subject: [PATCH] - Use _exit() instead of exit() when Timidity++ cannot be execed, because exit() can (and does) make the process hang. (It sure would be nice if POSIX-land had a simple CreateProcess API, but I guess that would be too easy, huh?) SVN r3432 (trunk) --- src/sound/music_midi_timidity.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sound/music_midi_timidity.cpp b/src/sound/music_midi_timidity.cpp index ac0ba5e2a..4acda49b9 100644 --- a/src/sound/music_midi_timidity.cpp +++ b/src/sound/music_midi_timidity.cpp @@ -458,7 +458,7 @@ bool TimidityPPMIDIDevice::LaunchTimidity () execvp (words.we_wordv[0], words.we_wordv); fprintf(stderr,"execvp failed\n"); - exit (0); // if execvp succeeds, we never get here + _exit (0); // if execvp succeeds, we never get here } else if (forkres < 0) {