Posted on 2011-02-24
I have a c executable running as daemon on linux
The code I have is:
Here's the problem,
1. aplication A , enters criticla section. It does Ctrl^C before lock is released
2. application B tries to acquire lock and waits forever since the lock is never release by appln A and it was killed.
Is there a way to overcome this problem?