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 10:03:58 +0000 (11:03 +0100)
commit1f3e187f6d79603c15ca9037048922e3ad2b9e50
tree7b7d0fd65c5962275a64e0e8a1e84a15b95f4e05
parenta03a45b700f2b8fbf4d5e7ba6e96d23d3d215833
Fix 2 bugs introduced by refactoring

The bugs where introduced in commit f41587f.

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