aboutsummaryrefslogtreecommitdiff
path: root/philo_two
diff options
context:
space:
mode:
authorCharles Cabergs <me@cacharle.xyz>2021-01-02 12:53:07 +0100
committerCharles Cabergs <me@cacharle.xyz>2021-01-02 12:53:07 +0100
commit592c515b742222c637478b3339b95cd2de8b4379 (patch)
tree9348814958ec5737fdf379e4041fa7666e89e9bf /philo_two
parent7aab8f34e8a238ce0688bf9f7e7f0b731902580f (diff)
downloadphilosophers-592c515b742222c637478b3339b95cd2de8b4379.tar.gz
philosophers-592c515b742222c637478b3339b95cd2de8b4379.tar.bz2
philosophers-592c515b742222c637478b3339b95cd2de8b4379.zip
Fixing infinite wait on philo_two/philo_three when philo dies and meal_num argument on
Diffstat (limited to 'philo_two')
-rw-r--r--philo_two/src/main.c3
1 files changed, 1 insertions, 2 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);
}
}