exit child when exec fails
authorMichael Gernoth <michael@gernoth.net>
Tue, 12 Feb 2008 06:25:17 +0000 (07:25 +0100)
committerMichael Gernoth <michael@gernoth.net>
Tue, 12 Feb 2008 06:25:17 +0000 (07:25 +0100)
src/sim/w_sound.c

index a7dae78..3f2ec38 100644 (file)
@@ -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");
Impressum, Datenschutz