aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--philo_three/src/main.c3
-rw-r--r--philo_two/src/main.c3
2 files changed, 2 insertions, 4 deletions
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 <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* 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);
}
}
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);
}
}