diff options
author | tron <tron@openttd.org> | 2005-09-11 09:24:17 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-09-11 09:24:17 +0000 |
commit | 3942ff203ea13092871db6e0c60cdb8ea396d9d6 (patch) | |
tree | 9a25b568b74936f5482d5bd6999d1d7cce8206ff | |
parent | 1236874baffb825789e97b3f69e5f5efcf7ae21c (diff) | |
download | openttd-3942ff203ea13092871db6e0c60cdb8ea396d9d6.tar.xz |
(svn r2938) -Fix: Exit the child of the extmidi backend with _exit() instead of exit(), because we don't want any atexit handlers - especially flushing output streams - to run, if exec() fails
Half a credit is due to Darkvater (;
-rw-r--r-- | music/extmidi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/music/extmidi.c b/music/extmidi.c index 1c66b8ec6..9bd946f4e 100644 --- a/music/extmidi.c +++ b/music/extmidi.c @@ -81,7 +81,7 @@ static void DoPlay(void) #endif } } - exit(1); + _exit(1); } case -1: |