aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_sfx_death.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_sfx_death.c')
-rw-r--r--src/ft_sfx_death.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_sfx_death.c b/src/ft_sfx_death.c
index 1680f2d..32ad6fe 100644
--- a/src/ft_sfx_death.c
+++ b/src/ft_sfx_death.c
@@ -28,7 +28,8 @@ void
while (1)
{
pthread_mutex_lock(&sfx->death_mutex);
- system(sfx->death);
+ if (system(sfx->death))
+ pthread_exit(NULL);
}
return (NULL);
}