How to open a device for exclusive access?
Bill Ricker
bill.n1vux at gmail.com
Sat Jul 14 13:15:20 EDT 2007
> ops in question, and you can store info (like your server's PID)
> in the files so created to help you handle the unclean-exit cases.
right -- you can auto-cleanup old lockfiles if contents are pid of the
creating process and /proc/$pid doesn't exist when server restarts.
Only if some OTHER process is holding that PID after a reboot or such
is a stale lockfile a problem for manual intervention. And in that
case, if lockfile is older than UPTIME, can't be yours, poof
--
Bill
n1vux at arrl.net bill.n1vux at gmail.com
More information about the gnhlug-discuss
mailing list