linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* reboot housekeeping, lack thereof, is messing with me
@ 2014-10-12 17:21 Gene Heskett
  2014-10-13  6:55 ` Clemens Ladisch
  0 siblings, 1 reply; 2+ messages in thread
From: Gene Heskett @ 2014-10-12 17:21 UTC (permalink / raw)
  To: linux-kernel

To whomever is in charge of the supposedly volatile LCK.. files in 
/var/lock:

Its my understanding that these files should be volatile when they 
represent a USB usage, because a USB device can be unplugged instantly and 
at any time.  The device nicely and dutifully disappears from an 'ls /dev' 
listing when a device is unplugged.

Why is it then that the /var/lock/LCK..ttyUSB1 file is always left behind, 
so it screws up any possibility of doing a nice clean reboot and restart 
of the program that uses it?

/var/lock is not now nor has it ever been volatile storage since its on 
the drive forever, or until one becomes root, deletes it, and then reboots 
the machine.  That just cost me a days work, testing usb cables etc with a 
digital storage scope and a chip replacement on the other systems 
motherboard that in all likelyhood wasn't needed.

Is this fixable?

Thanks.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: reboot housekeeping, lack thereof, is messing with me
  2014-10-12 17:21 reboot housekeeping, lack thereof, is messing with me Gene Heskett
@ 2014-10-13  6:55 ` Clemens Ladisch
  0 siblings, 0 replies; 2+ messages in thread
From: Clemens Ladisch @ 2014-10-13  6:55 UTC (permalink / raw)
  To: Gene Heskett, linux-kernel

Gene Heskett wrote:
> To whomever is in charge of the supposedly volatile LCK.. files in
> /var/lock:

Whoever that may be, it's not the kernel.

> Its my understanding that these files should be volatile when they
> represent a USB usage, because a USB device can be unplugged instantly and
> at any time.  The device nicely and dutifully disappears from an 'ls /dev'
> listing when a device is unplugged.
>
> Why is it then that the /var/lock/LCK..ttyUSB1 file is always left behind,
> so it screws up any possibility of doing a nice clean reboot and restart
> of the program that uses it?

What program leaves this file behind?  (The pid in there is no longer
helpful, unless it got logged due to a segfault, but what was the last
program used for serial stuff?)

Anyway, it appears some programs automatically delete this file when the
pid is not valid.


Regards,
Clemens

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-10-13  6:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-12 17:21 reboot housekeeping, lack thereof, is messing with me Gene Heskett
2014-10-13  6:55 ` Clemens Ladisch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).