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: | Heisenberg |
|---|---|
| Location: | Kalgoorlie, Western Australia |
| Users: | 14 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 12:13:05 |
| Calls: | 369 |
| Calls today: | 7 |
| Files: | 1,045 |
| Messages: | 23,656 |