aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r--src/ft_warp_level.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c
index 808b346..4d1ca12 100644
--- a/src/ft_warp_level.c
+++ b/src/ft_warp_level.c
@@ -16,8 +16,6 @@
#include <stddef.h>
#include <stdint.h>
#include <mlx.h>
-#include <signal.h>
-#include <pthread.h>
static void
ft_del_map(t_map *ml)
@@ -66,16 +64,13 @@ static void
{
if (isoldmus && !cl->mlist.ismusic)
{
- pthread_cancel(cl->tid);
- pthread_join(cl->tid, NULL);
+ /* stop fork() here */
cl->isoldmus = 0;
}
else if (isoldmus && cl->mlist.ismusic
&& ft_strncmp(tmp_mup, cl->mlist.music_path, ft_strlen(tmp_mup) + 1))
{
- pthread_cancel(cl->tid);
- pthread_join(cl->tid, NULL);
- pthread_create(&cl->tid, NULL, ft_music_thread, cl);
+ /* stop and recreate fork() here */
}
else if (isoldmus && cl->mlist.ismusic
&& !ft_strncmp(tmp_mup, cl->mlist.music_path, ft_strlen(tmp_mup) + 1))