Thanks!
I will try the named semaphores.
And you are right, my quick sample did not have a loop.
But I use it in a "real program" that does not quit and then the effect
is that only the semaphore disappears and the shared memory and the
process does not.
Cheers
Christoph
On 26.04.20 11:50,
Hi,
> The semaphore should exists as long it is not
> deleted or the OS restarts.
semget(2) and semctl(2) mention as explanation text sem_overview(7)
which is mainly about POSIX semaphores.
It promises persistence only for named semaphores:
Persistence
POSIX named semaphores have kern
Hello!
I have a problem with a semaphore and I am not sure whats the problem.
Its about the lifecycle of a semaphore after logout.
The workflow:
A program creates a semaphore and exits.
It is executed by a non-root user.
After execution the user quits the session (logout).
If I do the wor
3 matches
Mail list logo