From unknown Sat Aug 16 23:48:39 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Reply-To: Daiki Ueno , 1688@debbugs.gnu.org Resent-From: Daiki Ueno Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Wed, 24 Dec 2008 07:05:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 1688 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12301017938234 (code B ref -1); Wed, 24 Dec 2008 07:05:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 24 Dec 2008 06:56:33 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=0.1 required=4.0 tests=FOURLA autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mBO6uTP0008226 for ; Tue, 23 Dec 2008 22:56:31 -0800 Received: from mail.gnu.org ([199.232.76.166]:54374 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LFNeX-0005kS-8n for emacs-pretest-bug@gnu.org; Wed, 24 Dec 2008 01:55:34 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LFNfI-0002j9-8D for emacs-pretest-bug@gnu.org; Wed, 24 Dec 2008 01:56:24 -0500 Received: from [150.82.175.84] (port=38548 helo=p360) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LFNfH-0002i5-9S for emacs-pretest-bug@gnu.org; Wed, 24 Dec 2008 01:56:20 -0500 Received: from ueno by p360 with local (Exim 4.69) (envelope-from ) id 1LFNEo-0004aw-HG for emacs-pretest-bug@gnu.org; Wed, 24 Dec 2008 15:28:58 +0900 From: Daiki Ueno To: emacs-pretest-bug@gnu.org Date: Wed, 24 Dec 2008 15:28:58 +0900 Message-ID: <877i5q2ij9.fsf@broken.deisui.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-Greylist: delayed 1629 seconds by postgrey-1.27 at monty-python; Wed, 24 Dec 2008 01:56:10 EST Hello, Try to start Emacs with emacs -Q -nw on xterm, and then evaluate the following expression: (assq 'ttname (system-process-attributes (emacs-pid))) => (ttname . "/dev/pts17") A "/" is missing between "pts" and "17". (file-exists-p "/dev/pts17") => nil (file-exists-p "/dev/pts/17") => t If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. If you would like to further debug the crash, please read the file /usr/local/share/emacs/23.0.60/etc/DEBUG for instructions. In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-12-24 on p360 Windowing system distributor `The X.Org Foundation', version 11.0.10402000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ja_JP.UTF-8 value of $XMODIFIERS: @im=SCIM locale-coding-system: utf-8-unix default-enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: which-function-mode: t icomplete-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: x r e p o r t SPC e m a b Recent messages: Loading mime-setup...done `completer' is not found. `habbrev' is not found. Loading remem...done Loading /home/ueno/.emacs/init.el (source)...done Loading /home/ueno/.emacs/custom.el (source)... Loading icomplete...done Loading which-func...done Loading /home/ueno/.emacs/custom.el (source)...done For information about GNU Emacs and the GNU system, type C-h C-a. -- Daiki Ueno From unknown Sat Aug 16 23:48:39 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Reply-To: richardeng , 1688@debbugs.gnu.org Resent-From: richardeng Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 12 Jan 2009 17:25:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1688 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123178068918806 (code B ref -1); Mon, 12 Jan 2009 17:25:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jan 2009 17:18:09 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0CHI6Tm018800 for ; Mon, 12 Jan 2009 09:18:07 -0800 Received: from mail.gnu.org ([199.232.76.166]:40793 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LMQP9-00067M-6P for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 12:16:47 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LMQQE-0006U4-KP for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 12:17:57 -0500 Received: from smtpbg1.foxmail.com ([58.61.33.111]:46659) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LMQQD-0006T6-S6 for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 12:17:54 -0500 Received: from 172.16.81.120 (foxmail.com [172.16.81.120]) by smtpbg1 (foxmail.com) with SMTP id abhrxXFl; Tue, 13 Jan 2009 01:17:24 +0800 (envelope-from richardeng@foxmail.com) X-QQ-mid: esmtp2123178064425731340 Received: from [192.168.1.111] (unknown [58.25.221.212]) by smtp.foxmail.com (Postfix) with ESMTP id ; Tue, 13 Jan 2009 01:17:24 +0800 (CST) Message-ID: <496B7B23.9070203@foxmail.com> Date: Tue, 13 Jan 2009 01:17:23 +0800 From: richardeng User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Daiki Ueno , 1688@debbugs.gnu.org CC: emacs-pretest-bug@gnu.org References: <877i5q2ij9.fsf@broken.deisui.org> In-Reply-To: <877i5q2ij9.fsf@broken.deisui.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 X-CrossAssassin-Score: 2 Daiki Ueno wrote: > Hello, > > Try to start Emacs with emacs -Q -nw on xterm, and then evaluate the > following expression: > > (assq 'ttname (system-process-attributes (emacs-pid))) > => (ttname . "/dev/pts17") > > A "/" is missing between "pts" and "17". > > (file-exists-p "/dev/pts17") > => nil > (file-exists-p "/dev/pts/17") > => t > > If Emacs crashed, and you have the Emacs process in the gdb debugger, > please include the output from the following gdb commands: > `bt full' and `xbacktrace'. > If you would like to further debug the crash, please read the file > /usr/local/share/emacs/23.0.60/etc/DEBUG for instructions. > > > In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11) > of 2008-12-24 on p360 > Windowing system distributor `The X.Org Foundation', version 11.0.10402000 > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: ja_JP.UTF-8 > value of $XMODIFIERS: @im=SCIM > locale-coding-system: utf-8-unix > default-enable-multibyte-characters: t > > Major mode: Lisp Interaction > > Minor modes in effect: > which-function-mode: t > icomplete-mode: t > tooltip-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > global-auto-composition-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > x r e p o r t SPC e m a b > > > Recent messages: > Loading mime-setup...done > `completer' is not found. > `habbrev' is not found. > Loading remem...done > Loading /home/ueno/.emacs/init.el (source)...done > Loading /home/ueno/.emacs/custom.el (source)... > Loading icomplete...done > Loading which-func...done > Loading /home/ueno/.emacs/custom.el (source)...done > For information about GNU Emacs and the GNU system, type C-h C-a. > > --- sysdep.c.~1.328.~ 2009-01-03 07:04:59.000000000 -0800 +++ sysdep.c 2009-01-13 01:09:56.000000000 -0800 @@ -3322,7 +3322,7 @@ if (MINOR (rdev) >= minor_beg && MINOR (rdev) <= minor_end) { - sprintf (name + strlen (name), "%lu", MINOR (rdev)); + sprintf (name + strlen (name), "/%lu", MINOR (rdev)); break; } } From unknown Sat Aug 16 23:48:39 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Reply-To: richardeng , 1688@debbugs.gnu.org Resent-From: richardeng Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 12 Jan 2009 18:05:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1688 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123178325329783 (code B ref -1); Mon, 12 Jan 2009 18:05:06 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jan 2009 18:00:53 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.9 required=4.0 tests=FOURLA,HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0CI0nuX029771 for ; Mon, 12 Jan 2009 10:00:50 -0800 Received: from mail.gnu.org ([199.232.76.166]:45833 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LMR4U-0007AC-T6 for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 12:59:30 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LMR5c-00050m-EP for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 13:00:42 -0500 Received: from mx20.gnu.org ([199.232.41.8]:45803) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LMR5b-0004xe-TI for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 13:00:40 -0500 Received: from smtpbg1.foxmail.com ([58.61.33.111]) by mx20.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LMR5Y-0000Dg-Hg for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 13:00:37 -0500 Received: from 172.16.81.120 (foxmail.com [172.16.81.120]) by smtpbg1 (foxmail.com) with SMTP id AjutfTlr; Tue, 13 Jan 2009 02:00:11 +0800 (envelope-from richardeng@foxmail.com) X-QQ-mid: esmtp2123178321111412082 Received: from [192.168.1.111] (unknown [58.25.221.212]) by smtp.foxmail.com (Postfix) with ESMTP id ; Tue, 13 Jan 2009 02:00:10 +0800 (CST) Message-ID: <496B8529.6010205@foxmail.com> Date: Tue, 13 Jan 2009 02:00:09 +0800 From: richardeng User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Daiki Ueno , 1688@debbugs.gnu.org CC: emacs-pretest-bug@gnu.org References: <877i5q2ij9.fsf@broken.deisui.org> In-Reply-To: <877i5q2ij9.fsf@broken.deisui.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-kernel: by mx20.gnu.org: Linux 2.4-2.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-CrossAssassin-Score: 2 Daiki Ueno wrote: > Hello, > > Try to start Emacs with emacs -Q -nw on xterm, and then evaluate the > following expression: > > (assq 'ttname (system-process-attributes (emacs-pid))) > => (ttname . "/dev/pts17") > > A "/" is missing between "pts" and "17". > > (file-exists-p "/dev/pts17") > => nil > (file-exists-p "/dev/pts/17") > => t > > If Emacs crashed, and you have the Emacs process in the gdb debugger, > please include the output from the following gdb commands: > `bt full' and `xbacktrace'. > If you would like to further debug the crash, please read the file > /usr/local/share/emacs/23.0.60/etc/DEBUG for instructions. > > > In GNU Emacs 23.0.60.1 (i686-pc-linux-gnu, GTK+ Version 2.12.11) > of 2008-12-24 on p360 > Windowing system distributor `The X.Org Foundation', version 11.0.10402000 > Important settings: > value of $LC_ALL: nil > value of $LC_COLLATE: nil > value of $LC_CTYPE: nil > value of $LC_MESSAGES: nil > value of $LC_MONETARY: nil > value of $LC_NUMERIC: nil > value of $LC_TIME: nil > value of $LANG: ja_JP.UTF-8 > value of $XMODIFIERS: @im=SCIM > locale-coding-system: utf-8-unix > default-enable-multibyte-characters: t > > Major mode: Lisp Interaction > > Minor modes in effect: > which-function-mode: t > icomplete-mode: t > tooltip-mode: t > mouse-wheel-mode: t > menu-bar-mode: t > file-name-shadow-mode: t > global-font-lock-mode: t > font-lock-mode: t > global-auto-composition-mode: t > auto-composition-mode: t > auto-encryption-mode: t > auto-compression-mode: t > column-number-mode: t > line-number-mode: t > transient-mark-mode: t > > Recent input: > x r e p o r t SPC e m a b > > > Recent messages: > Loading mime-setup...done > `completer' is not found. > `habbrev' is not found. > Loading remem...done > Loading /home/ueno/.emacs/init.el (source)...done > Loading /home/ueno/.emacs/custom.el (source)... > Loading icomplete...done > Loading which-func...done > Loading /home/ueno/.emacs/custom.el (source)...done > For information about GNU Emacs and the GNU system, type C-h C-a. > > send again, "plain text only" has format problem... --- sysdep.c.~1.328.~ 2009-01-03 07:04:59.000000000 -0800 +++ sysdep.c 2009-01-13 01:09:56.000000000 -0800 @@ -3322,7 +3322,7 @@ if (MINOR (rdev) >= minor_beg && MINOR (rdev) <= minor_end) { - sprintf (name + strlen (name), "%lu", MINOR (rdev)); + sprintf (name + strlen (name), "/%lu", MINOR (rdev)); break; } } From unknown Sat Aug 16 23:48:39 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Reply-To: Eli Zaretskii , 1688@debbugs.gnu.org Resent-From: Eli Zaretskii Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 12 Jan 2009 19:25:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1688 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123178799017178 (code B ref -1); Mon, 12 Jan 2009 19:25:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jan 2009 19:19:50 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0CJJlcd017168 for ; Mon, 12 Jan 2009 11:19:48 -0800 Received: from mx10.gnu.org ([199.232.76.166]:37383) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LMSIu-0003tq-G9 for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 14:18:28 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LMSK9-0006TG-NJ for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 14:19:46 -0500 Received: from mtaout2.012.net.il ([84.95.2.4]:63029) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMSK9-0006TC-BM; Mon, 12 Jan 2009 14:19:45 -0500 Received: from conversion-daemon.i_mtaout2.012.net.il by i_mtaout2.012.net.il (HyperSendmail v2004.12) id <0KDD00300FVF7H00@i_mtaout2.012.net.il>; Mon, 12 Jan 2009 21:19:52 +0200 (IST) Received: from HOME-C4E4A596F7 ([77.126.141.155]) by i_mtaout2.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KDD00DO9HP0PJ41@i_mtaout2.012.net.il>; Mon, 12 Jan 2009 21:19:49 +0200 (IST) Date: Mon, 12 Jan 2009 21:19:39 +0200 From: Eli Zaretskii In-reply-to: <496B7B23.9070203@foxmail.com> X-012-Sender: halo1@inter.net.il To: richardeng , 1688@debbugs.gnu.org Cc: ueno@unixuser.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org Message-id: References: <877i5q2ij9.fsf@broken.deisui.org> <496B7B23.9070203@foxmail.com> X-detected-operating-system: by monty-python.gnu.org: Solaris 9.1 > Date: Tue, 13 Jan 2009 01:17:23 +0800 > From: richardeng > Cc: emacs-pretest-bug@gnu.org > > --- sysdep.c.~1.328.~ 2009-01-03 07:04:59.000000000 -0800 > +++ sysdep.c 2009-01-13 01:09:56.000000000 -0800 > @@ -3322,7 +3322,7 @@ > > if (MINOR (rdev) >= minor_beg && MINOR (rdev) <= minor_end) > { > - sprintf (name + strlen (name), "%lu", MINOR (rdev)); > + sprintf (name + strlen (name), "/%lu", MINOR (rdev)); > break; > } It's not that simple: what happens if `name' is something like "ptys" or "tty"? We need to generate "ptys2" and "tty39" for them, not "ptys/2" and "tty/39". So a more complex logic is required here. Faced with this difficulty, I decided not to bother, since the value of `ttname' is not documented to return a valid file name. Perhaps some Linux guru (which I ain't) can suggest an easy solution. From unknown Sat Aug 16 23:48:39 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Reply-To: Stefan Monnier , 1688@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Mon, 12 Jan 2009 21:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1688 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123179429811265 (code B ref -1); Mon, 12 Jan 2009 21:10:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 12 Jan 2009 21:04:58 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0CL4swZ011256 for ; Mon, 12 Jan 2009 13:04:55 -0800 Received: from mx10.gnu.org ([199.232.76.166]:51506) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LMTwd-00077p-K1 for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 16:03:35 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LMTxt-0006b7-DJ for emacs-pretest-bug@gnu.org; Mon, 12 Jan 2009 16:04:53 -0500 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:34194 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LMTxr-0006ac-Qj; Mon, 12 Jan 2009 16:04:51 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApwEAJE/a0lMCpxj/2dsb2JhbACBbNF6hW+BbA X-IronPort-AV: E=Sophos;i="4.37,254,1231131600"; d="scan'208";a="32199799" Received: from 76-10-156-99.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.99]) by ironport2-out.teksavvy.com with ESMTP; 12 Jan 2009 16:04:50 -0500 Received: by pastel.home (Postfix, from userid 20848) id 656408440; Mon, 12 Jan 2009 16:04:50 -0500 (EST) From: Stefan Monnier To: Eli Zaretskii Cc: 1688@debbugs.gnu.org, richardeng , emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, ueno@unixuser.org Message-ID: References: <877i5q2ij9.fsf@broken.deisui.org> <496B7B23.9070203@foxmail.com> Date: Mon, 12 Jan 2009 16:04:50 -0500 In-Reply-To: (Eli Zaretskii's message of "Mon, 12 Jan 2009 21:19:39 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. >> --- sysdep.c.~1.328.~ 2009-01-03 07:04:59.000000000 -0800 >> +++ sysdep.c 2009-01-13 01:09:56.000000000 -0800 >> @@ -3322,7 +3322,7 @@ >> >> if (MINOR (rdev) >= minor_beg && MINOR (rdev) <= minor_end) >> { >> - sprintf (name + strlen (name), "%lu", MINOR (rdev)); >> + sprintf (name + strlen (name), "/%lu", MINOR (rdev)); >> break; >> } > It's not that simple: what happens if `name' is something like "ptys" > or "tty"? We need to generate "ptys2" and "tty39" for them, not > "ptys/2" and "tty/39". Indeed, it's pretty messy. Even just procfs_ttyname in itself is pretty messy (not its implementation, but the need to go through those hoops). > Faced with this difficulty, I decided not to bother, since the value > of `ttname' is not documented to return a valid file name. > Perhaps some Linux guru (which I ain't) can suggest an easy solution. I think it's OK for now. When we really need something better, we'll just look at the `ps' code. Stefan From rgm@gnu.org Thu Jan 15 15:38:28 2009 Received: (at control) by emacsbugs.donarmstrong.com; 15 Jan 2009 23:38:28 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: ** X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=2.3 required=4.0 tests=MISSING_SUBJECT,NOSUBJECT, VALID_BTS_CONTROL autolearn=no version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0FNcPDO030885 for ; Thu, 15 Jan 2009 15:38:27 -0800 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1LNblm-0003kP-P8; Thu, 15 Jan 2009 18:37:02 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18799.51358.725326.185170@fencepost.gnu.org> Date: Thu, 15 Jan 2009 18:37:02 -0500 From: Glenn Morris To: control severity 1305 wishlist severity 1303 minor severity 1250 minor severity 1367 wishlist severity 1405 minor severity 1457 wishlist severity 1555 minor severity 1569 minor severity 1688 minor close 1705 severity 1731 minor close 1756 severity 1768 minor severity 1779 minor tags 1798 moreinfo reassign 1860 notemacs reassign 1902 emacs,ns reassign 1924 spam reassign 1926 notemacs stop From unknown Sat Aug 16 23:48:39 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Reply-To: richardeng , 1688@debbugs.gnu.org Resent-From: richardeng Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 16 Jan 2009 10:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1688 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123210137423834 (code B ref -1); Fri, 16 Jan 2009 10:30:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Jan 2009 10:22:54 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0GAMpdu023818 for ; Fri, 16 Jan 2009 02:22:52 -0800 Received: from mx10.gnu.org ([199.232.76.166]:32925) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LNlpP-00052j-Cl for emacs-pretest-bug@gnu.org; Fri, 16 Jan 2009 05:21:27 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LNlqd-0001qZ-DU for emacs-pretest-bug@gnu.org; Fri, 16 Jan 2009 05:22:43 -0500 Received: from smtpbg3.foxmail.com ([121.14.102.33]:44254) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LNlqV-0001oy-Q4; Fri, 16 Jan 2009 05:22:36 -0500 Received: from 172.25.76.137 (foxmail.com [172.25.76.137]) by smtpbg3 (foxmail.com) with SMTP id lZhNjMLi; Fri, 16 Jan 2009 18:22:21 +0800 (envelope-from richardeng@foxmail.com) X-QQ-mid: esmtp2123210134123212825 Received: from [192.168.1.111] (unknown [58.25.221.212]) by esmtp2.foxmail.com (ESMTP) with id ; Fri, 16 Jan 2009 18:22:12 +0800 (CST) Message-ID: <49705FD0.6090006@foxmail.com> Date: Fri, 16 Jan 2009 18:22:08 +0800 From: richardeng User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Stefan Monnier CC: Eli Zaretskii , 1688@debbugs.gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, ueno@unixuser.org References: <877i5q2ij9.fsf@broken.deisui.org> <496B7B23.9070203@foxmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) Stefan Monnier wrote: >>> --- sysdep.c.~1.328.~ 2009-01-03 07:04:59.000000000 -0800 >>> +++ sysdep.c 2009-01-13 01:09:56.000000000 -0800 >>> @@ -3322,7 +3322,7 @@ >>> >>> if (MINOR (rdev) >= minor_beg && MINOR (rdev) <= minor_end) >>> { >>> - sprintf (name + strlen (name), "%lu", MINOR (rdev)); >>> + sprintf (name + strlen (name), "/%lu", MINOR (rdev)); >>> break; >>> } >>> >> It's not that simple: what happens if `name' is something like "ptys" >> or "tty"? We need to generate "ptys2" and "tty39" for them, not >> "ptys/2" and "tty/39". >> > > Indeed, it's pretty messy. Even just procfs_ttyname in itself is pretty > messy (not its implementation, but the need to go through those hoops). > > >> Faced with this difficulty, I decided not to bother, since the value >> of `ttname' is not documented to return a valid file name. >> > > >> Perhaps some Linux guru (which I ain't) can suggest an easy solution. >> > > I think it's OK for now. When we really need something better, we'll > just look at the `ps' code. > > > Stefan > > > check ISDIR first --- sysdep.c.~1.328.~ 2009-01-03 07:04:59.000000000 -0800 +++ sysdep.c 2009-01-15 02:03:07.000000000 -0800 @@ -3322,7 +3322,11 @@ if (MINOR (rdev) >= minor_beg && MINOR (rdev) <= minor_end) { - sprintf (name + strlen (name), "%lu", MINOR (rdev)); + struct stat st_addr; + if (!stat (name, &st_addr) && S_ISDIR(st_addr.st_mode)) + sprintf (name + strlen (name), "/%lu", MINOR (rdev)); + else + sprintf (name + strlen (name), "%lu", MINOR (rdev)); break; } } From unknown Sat Aug 16 23:48:39 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Reply-To: Stefan Monnier , 1688@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 16 Jan 2009 21:10:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1688 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.12321396548464 (code B ref -1); Fri, 16 Jan 2009 21:10:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 16 Jan 2009 21:00:54 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0GL0p3Q008450 for ; Fri, 16 Jan 2009 13:00:52 -0800 Received: from mx10.gnu.org ([199.232.76.166]:32978) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1LNvmo-0001Qc-7O for emacs-pretest-bug@gnu.org; Fri, 16 Jan 2009 15:59:26 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1LNvo9-0004qo-BM for emacs-pretest-bug@gnu.org; Fri, 16 Jan 2009 16:00:49 -0500 Received: from ironport2-out.pppoe.ca ([206.248.154.182]:12774 helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LNvo6-0004qT-8g; Fri, 16 Jan 2009 16:00:46 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AkQFAFuEcElMCpxj/2dsb2JhbACBbMwHhXKBfw X-IronPort-AV: E=Sophos;i="4.37,278,1231131600"; d="scan'208";a="32429875" Received: from 76-10-156-99.dsl.teksavvy.com (HELO pastel.home) ([76.10.156.99]) by ironport2-out.teksavvy.com with ESMTP; 16 Jan 2009 16:00:45 -0500 Received: by pastel.home (Postfix, from userid 20848) id 27A6C7F97; Fri, 16 Jan 2009 16:00:45 -0500 (EST) From: Stefan Monnier To: richardeng Cc: Eli Zaretskii , 1688@debbugs.gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, ueno@unixuser.org Message-ID: References: <877i5q2ij9.fsf@broken.deisui.org> <496B7B23.9070203@foxmail.com> <49705FD0.6090006@foxmail.com> Date: Fri, 16 Jan 2009 16:00:45 -0500 In-Reply-To: <49705FD0.6090006@foxmail.com> (richardeng@foxmail.com's message of "Fri, 16 Jan 2009 18:22:08 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. > check ISDIR first 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. Stefan From unknown Sat Aug 16 23:48:39 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Reply-To: richardeng , 1688@debbugs.gnu.org Resent-From: richardeng Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 17 Jan 2009 12:00:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1688 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123219316832724 (code B ref -1); Sat, 17 Jan 2009 12:00:03 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 17 Jan 2009 11:52:48 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=HAS_BUG_NUMBER,MULTALT autolearn=unavailable version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0HBqjNa032718 for ; Sat, 17 Jan 2009 03:52:46 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LO9jI-0001jG-LQ for bug-gnu-emacs@gnu.org; Sat, 17 Jan 2009 06:52:44 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LO9jG-0001hE-Pb for bug-gnu-emacs@gnu.org; Sat, 17 Jan 2009 06:52:44 -0500 Received: from [199.232.76.173] (port=49758 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LO9jG-0001gw-LJ for bug-gnu-emacs@gnu.org; Sat, 17 Jan 2009 06:52:42 -0500 Received: from smtpbg3.foxmail.com ([121.14.102.33]:46742) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LO9j0-0007wq-Bl; Sat, 17 Jan 2009 06:52:27 -0500 Received: from 172.25.76.137 (foxmail.com [172.25.76.137]) by smtpbg3 (foxmail.com) with SMTP id CkXVLMon; Sat, 17 Jan 2009 19:52:10 +0800 (envelope-from richardeng@foxmail.com) X-QQ-mid: esmtp2123219313063420038 Received: from [192.168.1.111] (unknown [58.25.221.212]) by esmtp2.foxmail.com (ESMTP) with id ; Sat, 17 Jan 2009 19:51:58 +0800 (CST) Message-ID: <4971C65F.9080703@foxmail.com> Date: Sat, 17 Jan 2009 19:51:59 +0800 From: richardeng User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Stefan Monnier CC: Eli Zaretskii , 1688@debbugs.gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, ueno@unixuser.org References: <877i5q2ij9.fsf@broken.deisui.org> <496B7B23.9070203@foxmail.com> <49705FD0.6090006@foxmail.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------000400070106070104040408" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-CrossAssassin-Score: 2 This is a multi-part message in MIME format. --------------000400070106070104040408 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Stefan Monnier wrote: >> check ISDIR first >> > > 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. > > > Stefan > > > you mean /dev/tty1 and /dev/tty/1 will exist at the same time? It won't as I know in linux procfs_ttyname should return a full path of the ttyname, or at least one function can return the fullpath. --------------000400070106070104040408 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Stefan Monnier wrote:
check ISDIR first
    

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.


        Stefan


  
you mean /dev/tty1 and /dev/tty/1 will exist at the same time?
It won't as I know in linux

procfs_ttyname should return a full path of the ttyname, or at least one function can return the fullpath.
--------------000400070106070104040408-- From unknown Sat Aug 16 23:48:39 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Reply-To: Stefan Monnier , 1688@debbugs.gnu.org Resent-From: Stefan Monnier Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 18 Jan 2009 21:05:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: followup 1688 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.123231228611861 (code B ref -1); Sun, 18 Jan 2009 21:05:05 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 18 Jan 2009 20:58:06 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-0.5 required=4.0 tests=HAS_BUG_NUMBER,XIRONPORT autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n0IKw3mJ011851 for ; Sun, 18 Jan 2009 12:58:04 -0800 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LOeiY-0003t6-QD for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 15:58:02 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LOeiY-0003so-3Y for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 15:58:02 -0500 Received: from [199.232.76.173] (port=60303 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LOeiX-0003sh-TD for bug-gnu-emacs@gnu.org; Sun, 18 Jan 2009 15:58:01 -0500 Received: from ironport2-out.teksavvy.com ([206.248.154.182]:14885) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LOeiV-0001TB-1P; Sun, 18 Jan 2009 15:57:59 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4EADQmc0lMCpxj/2dsb2JhbACBbM1MhXOCAw X-IronPort-AV: E=Sophos;i="4.37,285,1231131600"; d="scan'208";a="32482682" Received: from 76-10-156-99.dsl.teksavvy.com (HELO ceviche.home) ([76.10.156.99]) by ironport2-out.teksavvy.com with ESMTP; 18 Jan 2009 15:57:58 -0500 Received: by ceviche.home (Postfix, from userid 20848) id 0EA08B40F2; Sun, 18 Jan 2009 15:57:58 -0500 (EST) From: Stefan Monnier To: richardeng Cc: Eli Zaretskii , 1688@debbugs.gnu.org, emacs-pretest-bug@gnu.org, bug-gnu-emacs@gnu.org, ueno@unixuser.org Message-ID: References: <877i5q2ij9.fsf@broken.deisui.org> <496B7B23.9070203@foxmail.com> <49705FD0.6090006@foxmail.com> <4971C65F.9080703@foxmail.com> Date: Sun, 18 Jan 2009 15:57:57 -0500 In-Reply-To: <4971C65F.9080703@foxmail.com> (richardeng@foxmail.com's message of "Sat, 17 Jan 2009 19:51:59 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. >> 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 From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 10 10:36:28 2011 Received: (at control) by debbugs.gnu.org; 10 Jul 2011 14:36:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfv7U-0008PJ-KP for submit@debbugs.gnu.org; Sun, 10 Jul 2011 10:36:28 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Qfv7T-0008P7-BN for control@debbugs.gnu.org; Sun, 10 Jul 2011 10:36:27 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Qfv7I-0001OL-K1 for control@debbugs.gnu.org; Sun, 10 Jul 2011 16:36:16 +0200 Date: Sun, 10 Jul 2011 16:36:16 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #1688 X-MailScanner-ID: 1Qfv7I-0001OL-K1 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310913376.74627@slkXHrn3cVskimu/QM1DXw X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) tags 1688 wontfix close 1688 From unknown Sat Aug 16 23:48:39 2025 X-Loop: help-debbugs@gnu.org Subject: bug#1688: 23.0.60; ttname returned by system-process-attributes points to nonexisting file Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 10 Jul 2011 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 1688 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix To: 1688@debbugs.gnu.org Received: via spool by 1688-submit@debbugs.gnu.org id=B1688.1310308929498 (code B ref 1688); Sun, 10 Jul 2011 14:43:02 +0000 Received: (at 1688) by debbugs.gnu.org; 10 Jul 2011 14:42:09 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfvCy-00007u-4t for submit@debbugs.gnu.org; Sun, 10 Jul 2011 10:42:08 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QfvCw-00007D-5s for 1688@debbugs.gnu.org; Sun, 10 Jul 2011 10:42:06 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=quimbies.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QfvCk-0001VP-Ct for 1688@debbugs.gnu.org; Sun, 10 Jul 2011 16:41:54 +0200 From: Lars Magne Ingebrigtsen In-Reply-To: (Stefan Monnier's message of "Sun, 18 Jan 2009 15:57:57 -0500") Date: Sun, 10 Jul 2011 16:36:12 +0200 Message-ID: References: <877i5q2ij9.fsf@broken.deisui.org> <496B7B23.9070203@foxmail.com> <49705FD0.6090006@foxmail.com> <4971C65F.9080703@foxmail.com> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Rick Rizzo and Tara Key's _Double Star_: "Descending Comment" X-Hashcash: 1:23:110710:eliz@gnu.org::0OGs8dh52T6djBlM:000009u0J X-Hashcash: 1:23:110710:monnier@iro.umontreal.ca::aTRftqDjAYezI5BT:00000000000000000000000000000000000009Txz X-Hashcash: 1:23:110710:ueno@unixuser.org::A63MJ0zxUKsqbmrV:00000000000000000000000000000000000000000000oG/F X-Hashcash: 1:23:110710:richardeng@foxmail.com::ye0BsJ87cRw4Wvwu:000000000000000000000000000000000000001V5BJ X-Hashcash: 1:23:110710:1688@debbugs.gnu.org::AeQN6ofF4sBcENsV:00000000000000000000000000000000000000001MLok MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1QfvCk-0001VP-Ct X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1310913715.27334@zEL0qSgeyaUBjgPkbE8Yzw X-Spam-Status: No X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) I think the conclusion here was to do nothing: > I think it's OK for now. When we really need something better, we'll > just look at the `ps' code. So I'm closing the report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/