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: | Wilsonville, Oregon, USA |
| Users: | 118 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 05:45:36 |
| Calls: | 9,782 |
| Calls today: | 2 |
| Files: | 9,618 |
| U/L today: |
1 files (516K bytes) |
| D/L today: |
1,095 files (1,042M bytes) |
| Messages: | 436,260 |
| Posted today: | 1 |