diff options
-rw-r--r-- | src/ft_exit.c | 5 | ||||
-rw-r--r-- | src/ft_sfx_bb_death.c | 2 | ||||
-rw-r--r-- | src/ft_sfx_bb_fire.c | 2 | ||||
-rw-r--r-- | src/ft_sfx_bb_scream.c | 4 | ||||
-rw-r--r-- | src/ft_sfx_death.c | 2 | ||||
-rw-r--r-- | src/ft_sfx_footstep.c | 4 | ||||
-rw-r--r-- | src/ft_sfx_heal.c | 2 | ||||
-rw-r--r-- | src/ft_sfx_new_level.c | 2 | ||||
-rw-r--r-- | src/ft_sfx_ooa.c | 2 | ||||
-rw-r--r-- | src/ft_sfx_pain.c | 4 | ||||
-rw-r--r-- | src/ft_sfx_trap.c | 2 |
11 files changed, 16 insertions, 15 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 17b7087..8c85fdb 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -49,7 +49,7 @@ static void if (FT_OS == 2) { pthread_cancel(clist->mtid); - pthread_join(clist->mtid, NULL); + /* pthread_join(clist->mtid, NULL); */ } else system(FT_SND_TERM_CMD); @@ -59,7 +59,8 @@ static void { if (FT_OS == 2) { - pthread_cancel(clist->sfx[i].tid); + system(FT_SND_TERM_CMD); + /* pthread_cancel(clist->sfx[i].tid); */ pthread_join(clist->sfx[i].tid, NULL); } else diff --git a/src/ft_sfx_bb_death.c b/src/ft_sfx_bb_death.c index 23a96d8..7466c57 100644 --- a/src/ft_sfx_bb_death.c +++ b/src/ft_sfx_bb_death.c @@ -29,7 +29,7 @@ void { pthread_mutex_lock(&sfx[13].mutex); if (system(sfx[13].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } diff --git a/src/ft_sfx_bb_fire.c b/src/ft_sfx_bb_fire.c index df89544..ab64b44 100644 --- a/src/ft_sfx_bb_fire.c +++ b/src/ft_sfx_bb_fire.c @@ -29,7 +29,7 @@ void { pthread_mutex_lock(&sfx[15].mutex); if (system(sfx[15].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } diff --git a/src/ft_sfx_bb_scream.c b/src/ft_sfx_bb_scream.c index 7c68c53..f9c74f7 100644 --- a/src/ft_sfx_bb_scream.c +++ b/src/ft_sfx_bb_scream.c @@ -32,10 +32,10 @@ void if (ref % 3) { if (system(sfx[14].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } else if (system(sfx[14].cmd_alt)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } diff --git a/src/ft_sfx_death.c b/src/ft_sfx_death.c index 76a98cd..9415c56 100644 --- a/src/ft_sfx_death.c +++ b/src/ft_sfx_death.c @@ -28,7 +28,7 @@ void { pthread_mutex_lock(&sfx[0].mutex); if (system(sfx[0].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } diff --git a/src/ft_sfx_footstep.c b/src/ft_sfx_footstep.c index 628660b..5b8fe8a 100644 --- a/src/ft_sfx_footstep.c +++ b/src/ft_sfx_footstep.c @@ -32,10 +32,10 @@ void if (ref % 2) { if (system(sfx[1].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } else if (system(sfx[1].cmd_alt)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } diff --git a/src/ft_sfx_heal.c b/src/ft_sfx_heal.c index b95fc2c..b58196f 100644 --- a/src/ft_sfx_heal.c +++ b/src/ft_sfx_heal.c @@ -28,7 +28,7 @@ void { pthread_mutex_lock(&sfx[5].mutex); if (system(sfx[5].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } diff --git a/src/ft_sfx_new_level.c b/src/ft_sfx_new_level.c index e4f3bff..f1f737e 100644 --- a/src/ft_sfx_new_level.c +++ b/src/ft_sfx_new_level.c @@ -28,7 +28,7 @@ void { pthread_mutex_lock(&sfx[2].mutex); if (system(sfx[2].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } diff --git a/src/ft_sfx_ooa.c b/src/ft_sfx_ooa.c index 5950d2e..48c2e5d 100644 --- a/src/ft_sfx_ooa.c +++ b/src/ft_sfx_ooa.c @@ -28,7 +28,7 @@ void { pthread_mutex_lock(&sfx[12].mutex); if (system(sfx[12].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } diff --git a/src/ft_sfx_pain.c b/src/ft_sfx_pain.c index d55c01c..baf689b 100644 --- a/src/ft_sfx_pain.c +++ b/src/ft_sfx_pain.c @@ -32,10 +32,10 @@ void if (ref % 3) { if (system(sfx[3].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } else if (system(sfx[3].cmd_alt)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } diff --git a/src/ft_sfx_trap.c b/src/ft_sfx_trap.c index 5ae39f0..60cd7c6 100644 --- a/src/ft_sfx_trap.c +++ b/src/ft_sfx_trap.c @@ -28,7 +28,7 @@ void { pthread_mutex_lock(&sfx[4].mutex); if (system(sfx[4].cmd)) - pthread_exit(NULL); + pthread_cancel(pthread_self()); } return (NULL); } |