How to open a device for exclusive access?

John Abreau jabr at blu.org
Mon Jul 16 12:28:47 EDT 2007


On Sat, July 14, 2007 1:15 pm, Bill Ricker said:

> 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

You can always look up the commandline of the PID to see if it's a
different process.

-- 
John Abreau / Executive Director, Boston Linux & Unix
IM: jabr at jabber.blu.org / abreauj at AIM / abreauj at Yahoo / zusa_it_mgr at Skype
Email jabr at blu.org / WWW http://www.abreau.net / PGP-Key-ID 0xD5C7B5D9
PGP-Key-Fingerprint 72 FB 39 4F 3C 3B D6 5B E0 C8 5A 6E F1 2C BE 99


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the gnhlug-discuss mailing list