summaryrefslogtreecommitdiff
path: root/music
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-09-11 09:24:17 +0000
committertron <tron@openttd.org>2005-09-11 09:24:17 +0000
commit3942ff203ea13092871db6e0c60cdb8ea396d9d6 (patch)
tree9a25b568b74936f5482d5bd6999d1d7cce8206ff /music
parent1236874baffb825789e97b3f69e5f5efcf7ae21c (diff)
downloadopenttd-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 (;
Diffstat (limited to 'music')
-rw-r--r--music/extmidi.c2
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: