From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: WAROQUIERS Philippe Newsgroups: gmane.emacs.devel Subject: RE: [rms@gnu.org: Re: [twurgler@goodyear.com: emacs-21.2.90 on HP 11.0]] Date: Mon, 15 Jul 2002 12:42:52 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5983E4DAC939D311B2F20008C7E62E7A075D2371@clsh01xch.office.cfmu.eurocontrol.be> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Trace: main.gmane.org 1026729896 30507 127.0.0.1 (15 Jul 2002 10:44:56 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 15 Jul 2002 10:44:56 +0000 (UTC) Cc: WAROQUIERS Philippe , twurgler@goodyear.com, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17U3Lb-0007vw-00 for ; Mon, 15 Jul 2002 12:44:55 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17U3W0-00040D-00 for ; Mon, 15 Jul 2002 12:55:40 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17U3Ky-0008Su-00; Mon, 15 Jul 2002 06:44:16 -0400 Original-Received: from out01b.e-scan.net ([193.123.92.197]) by fencepost.gnu.org with esmtp (Exim 3.35 #1 (Debian)) id 17U3Jm-0008RP-00; Mon, 15 Jul 2002 06:43:02 -0400 Original-Received: from biscuit.eurocontrol.be (unverified) by out01b.e-scan.net (Content Technologies SMTPRS 4.2.10) with ESMTP id ; Mon, 15 Jul 2002 10:43:08 +0000 Original-Received: from CLSH01XCH.sup.cfmu.eurocontrol.be ([193.58.25.63]) by biscuit.eurocontrol.be (8.9.3 (PHNE_18546)/8.9.3) with ESMTP id MAA12757; Mon, 15 Jul 2002 12:42:56 +0200 (METDST) Original-Received: by clsh01xch.office.cfmu.eurocontrol.be with Internet Mail Service (5.5.2653.19) id <3DT4BW2V>; Mon, 15 Jul 2002 12:42:54 +0200 Original-To: "'rms@gnu.org'" , VAN VLIERBERGHE Stef X-Mailer: Internet Mail Service (5.5.2653.19) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:5757 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:5757 !!! if (inchannel >= 0) { #ifndef USG /* On USG systems it does not work to open the pty's tty here and then close and reopen it in the child. */ What happens if you change USG to 0 in that conditional? Does subtty get set up properly? Does everything work after that? I suppose that what you wanted is to execute the code inside the #ifndef so I have replaced #ifndef USG by #ifndef THIS_IS_NOT_DEFINED (replaced USG by 0 was giving a compilation error). After this, the following works properly: M-x shell cat C-c C-c (or Signals -> Break) Note however that it is still needed to initialise int gid = 1; in process_send_signal to have C-c C-c killing the cat. If I remove the initialisation of int gid; then C-c C-c does not work while Signals -> Break works. Also, independent of that, if you take away the #if 0 that currently surrounds these two lines, and make them unconditional, if (err == -1) gid = - XFASTINT (p->pid); does that fix the problem? (NB: in emacs-21.2, it is not #if 0 but #ifdef pfa). Yes, it also fixes the problem. But I think this is just another way to put any value in gid which makes the rest of the code work. If I put gid = 12345; it works as good as if I put gid = - XFASTINT (p->pid) The ioctl TIOCPGRP still fails (err = -1, errno= 25 ENOTTY). But any value in gid is ok because when TIOCSIGSEND is defined, gid is only used afterwards to compare to -1. After, when TIOCSIGSEND is defined and current_group is not nil, gid is unused to send the signal.