diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-06 19:03:24 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-06 19:03:51 +0100 |
commit | a35b258841cde7884f5bb71d5ae0951d5e3f27b7 (patch) | |
tree | b7d1c6801ba924e129b3d008091a3f1b2e0adc95 /src/ft_music.c | |
parent | Name is Cub3D anyway (diff) | |
download | 42-cub3d-a35b258841cde7884f5bb71d5ae0951d5e3f27b7.tar.gz 42-cub3d-a35b258841cde7884f5bb71d5ae0951d5e3f27b7.tar.bz2 42-cub3d-a35b258841cde7884f5bb71d5ae0951d5e3f27b7.tar.xz 42-cub3d-a35b258841cde7884f5bb71d5ae0951d5e3f27b7.tar.zst 42-cub3d-a35b258841cde7884f5bb71d5ae0951d5e3f27b7.zip |
fork(3) going well, freed a leak
Diffstat (limited to 'src/ft_music.c')
-rw-r--r-- | src/ft_music.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/ft_music.c b/src/ft_music.c index b9e9d89..70bb1a1 100644 --- a/src/ft_music.c +++ b/src/ft_music.c @@ -12,17 +12,19 @@ #include <libft.h> #include <cub3d.h> -#include <stddef.h> #include <stdlib.h> +#include <unistd.h> + void - ft_music_fork(t_cub *cl) + ft_music_fork(char *music_cmd) { - cl->isoldmus = 1; + (void)music_cmd; while (1) { ft_printf("qweqwe\n"); + sleep(1); } - /* system(cl->mlist.music_cmd); */ /* execve here */ + /* system(cl->mlist.music_cmd); */ } |