all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: richardeng <richardeng@foxmail.com>
Cc: emacs-pretest-bug@gnu.org, ueno@unixuser.org,
	bug-gnu-emacs@gnu.org, 1688@emacsbugs.donarmstrong.com
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	[thread overview]
Message-ID: <jwvvdsc49p5.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <4971C65F.9080703@foxmail.com> (richardeng@foxmail.com's message of "Sat, 17 Jan 2009 19:51:59 +0800")

>> 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	other threads:[~2009-01-18 20:57 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-24  6:28 bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Daiki Ueno
2009-01-12 17:17 ` richardeng
2009-01-12 19:19   ` Eli Zaretskii
2009-01-12 21:04     ` Stefan Monnier
2009-01-16 10:22       ` richardeng
2009-01-16 21:00         ` Stefan Monnier
2009-01-17 11:51           ` richardeng
2009-01-18 20:57             ` Stefan Monnier [this message]
2011-07-10 14:36               ` Lars Magne Ingebrigtsen
2009-01-12 18:00 ` richardeng

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvvdsc49p5.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=1688@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=emacs-pretest-bug@gnu.org \
    --cc=richardeng@foxmail.com \
    --cc=ueno@unixuser.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.