[BRLTTY] Re: Write of brltty.pid on read-konly file systems at boot

Samuel Thibault samuel.thibault at ens-lyon.org
Tue Dec 19 15:17:14 EST 2006


Sébastien Hinderer, le Tue 19 Dec 2006 21:14:31 +0100, a écrit :
> > >Or even more, reading the existing PID file and just see if a such PID exists
> > >in the system. If not, then it comes from a previous crash. If yes, it would
> > >mean another BrlTty is running.
> > 
> > That may not work to well for boot processes since they all tend to have
> > similar pids. The common case where the boot sequence doesn't change and the
> > pid is the same can be detected, but a slight alteration in the sequence could
> > easily mean that the old pid matches that of some other active
> > process.
> 
> Is it possible At boot time, given a pid, to find the name of the
> corresponding process ?
> If yes: what about looking wether the pid in the pid files corresponds to
> brltty or not ?

That may still be _another_ brltty, that a user started for some other
reason ;)

Samuel


More information about the BRLTTY mailing list