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: | Eric Oulashin |
|---|---|
| Location: | Beaverton, Oregon, USA |
| Users: | 122 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 18:05:31 |
| Calls: | 9,720 |
| Calls today: | 3 |
| Files: | 9,608 |
| D/L today: |
333 files (262M bytes) |
| Messages: | 434,888 |