Add a way to unlink the semaphore
parent
cf5c30e7cc
commit
615c28d737
3
herbe.c
3
herbe.c
|
|
@ -86,7 +86,10 @@ void action()
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
if (argc == 1)
|
if (argc == 1)
|
||||||
|
{
|
||||||
|
sem_unlink("/herbe");
|
||||||
die("Usage: %s body", argv[0]);
|
die("Usage: %s body", argv[0]);
|
||||||
|
}
|
||||||
|
|
||||||
signal(SIGALRM, expire);
|
signal(SIGALRM, expire);
|
||||||
signal(SIGTERM, expire);
|
signal(SIGTERM, expire);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue