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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_sfx_trap.c b/src/ft_sfx_trap.c
index 2c35ef9..98f210b 100644
--- a/src/ft_sfx_trap.c
+++ b/src/ft_sfx_trap.c
@@ -24,11 +24,11 @@ void
else
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL);
sfx = (t_sfx *)vargp;
- pthread_mutex_lock(&sfx->trap_mutex);
+ pthread_mutex_lock(&sfx[4].mutex);
while (1)
{
- pthread_mutex_lock(&sfx->trap_mutex);
- if (system(sfx->trap))
+ pthread_mutex_lock(&sfx[4].mutex);
+ if (system(sfx[4].cmd))
pthread_exit(NULL);
}
return (NULL);
@@ -37,5 +37,5 @@ void
void
ft_sfx_trap(t_sfx *sfx)
{
- pthread_mutex_unlock(&cl->sfx.trap_mutex);
+ pthread_mutex_unlock(&sfx[4].mutex);
}