Fix 2 bugs introduced by refactoring
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 22 Mar 2024 08:24:05 +0000 (09:24 +0100)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 22 Mar 2024 08:24:05 +0000 (09:24 +0100)
commitcbc420d5e95de053be904b9dba4ff460d4158cd9
treede4ffd6ec94b71b809f56f7d1c9931fdb827ac2b
parent307fdf668a83684d2a51d266e0b92fe7c79e54cc
Fix 2 bugs introduced by refactoring

The bugs where introduced in commit c091d1d.

One bug was that not setting the optional argument
number_of_times_each_philosopher_must_eat behaved the same
as setting it to 0.

The other bug was caused by not initializing a value.
This caused the non-philosopher thread to sleep for much too long.
philo/check_death.c