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: | Chris Crash |
|---|---|
| Location: | Huntington Beach, CA. |
| Users: | 657 |
| Nodes: | 8 (0 / 8) |
| Uptime: | 248:57:59 |
| Calls: | 11,388 |
| Files: | 5 |
| Messages: | 696,399 |