From f18301f7381ec037656ea126c68c61a32da0de7b Mon Sep 17 00:00:00 2001 From: Houtworm Date: Mon, 22 May 2023 07:18:49 +0200 Subject: [PATCH] looking like it --- philo_bonus/src/init.c | 4 ++-- philo_bonus/src/philo.c | 6 +++--- philo_bonus/src/util.c | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/philo_bonus/src/init.c b/philo_bonus/src/init.c index f386690..4a4fc2d 100644 --- a/philo_bonus/src/init.c +++ b/philo_bonus/src/init.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ /* .--. _ */ -/* init.c |o_o || | */ +/* init.c :+: :+: :+: */ /* |:_/ || |_ _ ___ __ */ /* By: houtworm // \ \ __| | | \ \/ / */ /* (| | )|_| |_| |> < */ /* Created: 2023/03/15 02:00:19 by houtworm /'\_ _/`\__|\__,_/_/\_\ */ -/* Updated: 2023/05/22 05:47:07 by djonker \___)=(___/ */ +/* Updated: 2023/05/22 07:13:59 by houtworm ### ########.fr */ /* */ /* ************************************************************************** */ diff --git a/philo_bonus/src/philo.c b/philo_bonus/src/philo.c index f2a92fe..55aaee7 100644 --- a/philo_bonus/src/philo.c +++ b/philo_bonus/src/philo.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ /* .--. _ */ -/* philo.c |o_o || | */ +/* philo.c :+: :+: :+: */ /* |:_/ || |_ _ ___ __ */ /* By: houtworm // \ \ __| | | \ \/ / */ /* (| | )|_| |_| |> < */ /* Created: 2023/03/11 06:42:31 by houtworm /'\_ _/`\__|\__,_/_/\_\ */ -/* Updated: 2023/05/22 05:49:17 by djonker \___)=(___/ */ +/* Updated: 2023/05/22 07:12:17 by houtworm ### ########.fr */ /* */ /* ************************************************************************** */ @@ -96,7 +96,7 @@ int ft_startcycle(t_strct *strct) sem_close(strct->hold); sem_close(strct->forks); sem_close(strct->print); - pthread_join(strct->philo[i].thrd, NULL); + /*pthread_join(strct->philo[i].thrd, NULL);*/ free(strct); exit(0); } diff --git a/philo_bonus/src/util.c b/philo_bonus/src/util.c index 9c25fc5..671629a 100644 --- a/philo_bonus/src/util.c +++ b/philo_bonus/src/util.c @@ -1,12 +1,12 @@ /* ************************************************************************** */ /* */ /* .--. _ */ -/* util.c |o_o || | */ +/* util.c :+: :+: :+: */ /* |:_/ || |_ _ ___ __ */ /* By: houtworm // \ \ __| | | \ \/ / */ /* (| | )|_| |_| |> < */ /* Created: 2023/03/15 02:01:41 by houtworm /'\_ _/`\__|\__,_/_/\_\ */ -/* Updated: 2023/05/22 04:34:47 by djonker \___)=(___/ */ +/* Updated: 2023/05/22 07:15:25 by houtworm ### ########.fr */ /* */ /* ************************************************************************** */ @@ -81,7 +81,7 @@ int ft_cleanup(t_strct *strct) kill(strct->pid[502], 15); while (i < strct->philos) { - pthread_join(strct->philo[i].thrd, NULL); + /*pthread_join(strct->philo[i].thrd, NULL);*/ kill(strct->pid[i], 15); i++; }