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