GNU bug report logs - #1688
23.0.60; ttname returned by system-process-attributes points to nonexisting file

Previous Next

Package: emacs;

Reported by: Daiki Ueno <ueno <at> unixuser.org>

Date: Wed, 24 Dec 2008 07:05:04 UTC

Severity: minor

Tags: wontfix

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: richardeng <richardeng <at> foxmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 1688 <at> debbugs.gnu.org,
        emacs-pretest-bug <at> gnu.org, bug-gnu-emacs <at> gnu.org, ueno <at> unixuser.org
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
>> 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





This bug report was last modified 14 years and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.