aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-06 20:43:42 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-06 20:43:42 +0100
commit6a89966eed6110d0e7a7ec53727c4473d18ad441 (patch)
treece56076af530fdbc94bd41702dda27a815561f2d /src/ft_warp_level.c
parentit's going well (diff)
download42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.tar.gz
42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.tar.bz2
42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.tar.xz
42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.tar.zst
42-cub3d-6a89966eed6110d0e7a7ec53727c4473d18ad441.zip
Fuck execve
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r--src/ft_warp_level.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c
index febff7e..9bd8d92 100644
--- a/src/ft_warp_level.c
+++ b/src/ft_warp_level.c
@@ -35,6 +35,7 @@ static void
ft_memdel((void**)&ml->music_cmd);
ft_memdel((void**)&ml->mapl);
ft_free_words(ml->map);
+ ft_free_words(ml->mcmd_words);
}
static void
@@ -75,11 +76,11 @@ static void
else if (isoldmus && cl->mlist.ismusic
&& ft_strncmp(tmp_mup, cl->mlist.music_path, ft_strlen(tmp_mup) + 1))
{
- kill(cl->mpid, SIGTERM);
- wait(&cl->mpid);
- cl->mpid = fork();
- if (cl->mpid == 0)
- ft_music_fork(cl->mlist.music_cmd);
+ /* kill(cl->mpid, SIGTERM); */
+ /* wait(&cl->mpid); */
+ /* cl->mpid = fork(); */
+ /* if (cl->mpid == 0) */
+ /* ft_music_fork(cl->mlist.mcmd_words); */
}
else if (isoldmus && cl->mlist.ismusic
&& !ft_strncmp(tmp_mup, cl->mlist.music_path, ft_strlen(tmp_mup) + 1))