On Sat, Jun 02, 2001 at 02:12:29PM +0200, [EMAIL PROTECTED] wrote:
> On Sat, 2 Jun 2001, Richard Zidlicky wrote:
> 
> > > I have a lock on /dev/modem, even after a reboot. I don't know how this
> > > came to be. Does anaybody know how I can unlock the device?
> > 
> > this is probably just a normal lockfile, simply delete it. The manpage
> > or strace will tell you which file.
> Thanx Richard. I will try strace as soon as I get back to my Q60. I have
> searched the pppd man page, it tells about the lock option, but only that
> there is a UUCP-style lock file. It doesn't tell how the file is called
> and where it is. 

iirc the lock file can be either /dev/modem.l*ck or /var/lock*/modem*
It gets interesting with symbolic links, some programs dereference
them to lock the real device, some don't.

> I wonder why the lock is not released after reboot.

because you are not supposed to reboot to fix it! Probably pppd died 
without getting a chance to cleanup, this can happen if you get seriously 
out of memory or the serial port is in a weird state. The init scripts 
should remove stale lockfiles, apparently they don't.

Bye
Richard

Reply via email to