tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ttyname(3) behaviour when /var/run/dev.db is out of date
In article <20080130194423.GA964%apb-laptoy.apb.alt.za@localhost>,
Alan Barrett <apb%cequrux.com@localhost> wrote:
>If you rename a tty device after running dev_mkdb(8) to create
>/var/run/dev.db, then ttyname(3) will return the old (no longer valid)
>name. The appended patch makes it verify the result using stat(2), and
>fall back to the old method of walking the /dev directory if the result
>appears to be incorrect. Is this OK?
>
Sure, this change is good, but you should mention that for ptyfs ttys
this is not used....
christos
Home |
Main Index |
Thread Index |
Old Index