bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#1688: 23.0.60; ttname returned by system-process-attributes points t


From: Stefan Monnier
Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file
Date: Sun, 18 Jan 2009 15:57:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>> It's a good heursitic, but it's still just a heuristic.
>> You may have a /dev/tty directory and still use /dev/tty1.
>> Maybe it's better to get rid of the "/dev/" prefix to make it more clear
>> that it's not really a valid file name.
> you mean /dev/tty1 and /dev/tty/1 will exist at the same time?

No, I mean both /dev/tty1 being the device you want and /dev/tty being
a directory.  Rather than ISDIR you could indeed just check which of
/dev/tty1 and /dev/tty/1 exists and if only one exists then you should
be pretty sure which answer is the right one.  If they both exist (or
if neither exists), it's much less clear what to do.

> It won't as I know in Linux

That depends on the dev layout chosen by the distribution/user/...
I.e. it's a heuristic.

> procfs_ttyname should return a full path of the ttyname, or at least
> one function can return the fullpath.

Why?


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]