all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: WAROQUIERS Philippe <philippe.waroquiers@eurocontrol.int>
Cc: WAROQUIERS Philippe <philippe.waroquiers@eurocontrol.int>,
	twurgler@goodyear.com, emacs-devel@gnu.org
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	[thread overview]
Message-ID: <5983E4DAC939D311B2F20008C7E62E7A075D2371@clsh01xch.office.cfmu.eurocontrol.be> (raw)

    !!!  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.

             reply	other threads:[~2002-07-15 10:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-15 10:42 WAROQUIERS Philippe [this message]
2002-07-16 13:29 ` [rms@gnu.org: Re: [twurgler@goodyear.com: emacs-21.2.90 on HP 11.0]] Richard Stallman
2002-07-16 13:49   ` Tom Wurgler
2002-07-17  3:03     ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2002-07-17 10:46 WAROQUIERS Philippe
2002-07-17 13:47 ` Tom Wurgler
2002-07-18 14:55   ` Richard Stallman
2002-07-17 18:39 ` Tom Wurgler
2002-07-18 14:55 ` Richard Stallman
2002-07-19 13:37   ` Tom Wurgler
2002-07-19 21:11     ` Stef Van Vlierberghe
2002-07-16 14:11 WAROQUIERS Philippe
     [not found] <5983E4DAC939D311B2F20008C7E62E7A075D2365@clsh01xch.office.cfmu.eurocontrol.be>
2002-07-12 11:12 ` Richard Stallman
2002-07-12 21:52   ` Stef Van Vlierberghe
2002-07-13 14:20     ` Richard Stallman

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=5983E4DAC939D311B2F20008C7E62E7A075D2371@clsh01xch.office.cfmu.eurocontrol.be \
    --to=philippe.waroquiers@eurocontrol.int \
    --cc=emacs-devel@gnu.org \
    --cc=twurgler@goodyear.com \
    /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.