Semaphore lifecycle?

2020-04-26 Thread e...@coderhacks.com
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

Re: Semaphore lifecycle?

2020-04-26 Thread e...@coderhacks.com
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,

Debian 10: enable counting in faillog

2019-10-24 Thread e...@coderhacks.com
Hello! I try to enable faillog at Debian 10. Till now it is installed but does not count failed logins. As far I found out I need to adjust some pam-files in /etc to enable it. I read about pam_tally, pam_tally2, auth_common, system-auth, ... So I think they are more or less do all the same b