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: | altere |
|---|---|
| Location: | Houston, TX |
| Users: | 78 |
| Nodes: | 4 (0 / 4) |
| Uptime: | 00:49:14 |
| Calls: | 2,237 |
| Files: | 9,604 |
| Messages: | 323,642 |