Add and fix error messaging, stop removal of files
authorLukas Jiriste <ljiriste@student.42prague.com>
Thu, 30 May 2024 11:35:30 +0000 (13:35 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Thu, 30 May 2024 11:35:30 +0000 (13:35 +0200)
commitbd927e9156e394a7c577d2d470aeb751a027e83e
tree52ac5bb22eec444a7786e399395d9d7275ebd5c4
parenta16de8c90699e2f82d839bf2b0529efa7da2d2af
Add and fix error messaging, stop removal of files

The philo program checks whether it created the semaphores.
When not, it assumes another instance is running and errors out.
Until this commit it would erase the semaphore files nontheless
because the unlinking was not conditional.
philo_bonus/main.c
philo_bonus/mem_management.c
philo_bonus/philo.c