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_two/src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'philo_two/src/main.c') diff --git a/philo_two/src/main.c b/philo_two/src/main.c index e88ccac..e3994e2 100644 --- a/philo_two/src/main.c +++ b/philo_two/src/main.c @@ -6,7 +6,7 @@ /* By: cacharle +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 22:45:23 by cacharle #+# #+# */ -/* Updated: 2021/01/02 12:05:01 by cacharle ### ########.fr */ +/* Updated: 2021/01/02 12:49:06 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -84,7 +84,6 @@ static void st_wait(t_philo_conf *conf) i = -1; while (++i < conf->philo_num) sem_wait(conf->sem_finish); - sem_wait(conf->sem_stdout); } } -- cgit