On Linux there's a cleaner way: wrap the door with flock. The kernel releases the lock as soon as the process dies, crash or not. No stale
lock left behind.
| Sysop: | Agent Orange |
|---|---|
| Location: | Victoria, BC Canada |
| Users: | 6 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 21:30:03 |
| Calls: | 315 |
| Files: | 861 |
| Messages: | 73,689 |