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: | Angel Ripoll |
|---|---|
| Location: | Madrid, Spain |
| Users: | 17 |
| Nodes: | 8 (0 / 8) |
| Uptime: | 43:05:24 |
| Calls: | 1,429 |
| Files: | 2,977 |
| D/L today: |
5 files (10K bytes) |
| Messages: | 68,756 |