From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: [angeloff@acm.org: Emacs bug with Solaris 9 (only)] Date: Mon, 17 Feb 2003 14:21:00 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v482) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1045488149 32404 80.91.224.249 (17 Feb 2003 13:22:29 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 17 Feb 2003 13:22:29 +0000 (UTC) Cc: angeloff@acm.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18klE3-0008QU-00 for ; Mon, 17 Feb 2003 14:22:27 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18klSS-000174-00 for ; Mon, 17 Feb 2003 14:37:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18klGH-0003WF-04 for emacs-devel@quimby.gnus.org; Mon, 17 Feb 2003 08:24:45 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18klFn-0003Nb-00 for emacs-devel@gnu.org; Mon, 17 Feb 2003 08:24:15 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18klFl-0003L0-00 for emacs-devel@gnu.org; Mon, 17 Feb 2003 08:24:14 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18klCy-0002A2-00; Mon, 17 Feb 2003 08:21:20 -0500 Original-Received: from accessno42.bodenonline.com (IDENT:root@accessno42.bodenonline.com [193.201.16.44]) h1HEErFM015209; Mon, 17 Feb 2003 15:14:53 +0100 Original-To: rms@gnu.org In-Reply-To: X-Mailer: Apple Mail (2.482) Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11707 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11707 > Now, reading the code it seems to me that p->subtty is unconditionally > set to Qnil when the fork of the subprocess succeeds, so the first > ioctl will never be executed. > > Here's the code that sets subtty. > > /* Record the tty descriptor used in the subprocess. */ > if (forkin < 0) > XPROCESS (process)->subtty = Qnil; > else > XSETFASTINT (XPROCESS (process)->subtty, forkin); > > It doesn't look like this always sets it to nil, unless > forkin is always < 0. Basically, it is not SUPPOSED > to be always nil, so if you find that it always IS nil, > there must be a bug somewhere. But later at the end of the same function (create_process) we have: /* vfork succeeded. */ ... XPROCESS (process)->subtty = Qnil; if (forkin >= 0) emacs_close (forkin); Jan D.