From 592c515b742222c637478b3339b95cd2de8b4379 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 2 Jan 2021 12:53:07 +0100 Subject: Fixing infinite wait on philo_two/philo_three when philo dies and meal_num argument on --- philo_three/src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'philo_three/src') diff --git a/philo_three/src/main.c b/philo_three/src/main.c index eb69ae8..9597fc0 100644 --- a/philo_three/src/main.c +++ b/philo_three/src/main.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/15 00:45:24 by cacharle #+# #+# */ -/* Updated: 2021/01/02 12:07:14 by cacharle ### ########.fr */ +/* Updated: 2021/01/02 12:49:44 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -84,7 +84,6 @@ static void st_wait(t_philo_args *args, t_sems *sems) i = -1; while (++i < args->philo_num) sem_wait(sems->sem_finish); - sem_wait(sems->sem_stdout); } } -- cgit