diff options
Diffstat (limited to 'src/ft_music.c')
-rw-r--r-- | src/ft_music.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/ft_music.c b/src/ft_music.c index aec5e58..b9e9d89 100644 --- a/src/ft_music.c +++ b/src/ft_music.c @@ -14,17 +14,15 @@ #include <cub3d.h> #include <stddef.h> #include <stdlib.h> -#include <pthread.h> void - *ft_music_thread(void *vargp) + ft_music_fork(t_cub *cl) { - t_cub *cl; - - cl = (t_cub *)vargp; cl->isoldmus = 1; - pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); while (1) - system(cl->mlist.music_cmd); - return (NULL); + { + ft_printf("qweqwe\n"); + } + /* system(cl->mlist.music_cmd); */ + /* execve here */ } |