diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-01-02 12:53:07 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-01-02 12:53:07 +0100 |
| commit | 592c515b742222c637478b3339b95cd2de8b4379 (patch) | |
| tree | 9348814958ec5737fdf379e4041fa7666e89e9bf /philo_three/src | |
| parent | 7aab8f34e8a238ce0688bf9f7e7f0b731902580f (diff) | |
| download | philosophers-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_three/src')
| -rw-r--r-- | philo_three/src/main.c | 3 |
1 files changed, 1 insertions, 2 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); } } |
