From 147021e095a1a31f6e2667539abf37a3e462c6b7 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Tue, 12 Feb 2008 07:25:17 +0100 Subject: [PATCH] exit child when exec fails --- src/sim/w_sound.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sim/w_sound.c b/src/sim/w_sound.c index a7dae78..3f2ec38 100644 --- a/src/sim/w_sound.c +++ b/src/sim/w_sound.c @@ -292,6 +292,7 @@ MakeSound(char *channel, char *id) switch(pid) { case 0: execl(player, player, filename, NULL); + exit(1); break; case -1: perror("fork failed"); -- 2.39.5