Add a way to unlink the semaphore

This commit is contained in:
Samuel Dudik 2020-08-15 20:16:31 +02:00
parent cf5c30e7cc
commit 615c28d737

View file

@ -86,7 +86,10 @@ void action()
int main(int argc, char *argv[])
{
if (argc == 1)
{
sem_unlink("/herbe");
die("Usage: %s body", argv[0]);
}
signal(SIGALRM, expire);
signal(SIGTERM, expire);