all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: [angeloff@acm.org: Emacs bug with Solaris 9 (only)]
Date: Mon, 17 Feb 2003 02:19:04 -0500	[thread overview]
Message-ID: <E18kfYO-0007TE-00@fencepost.gnu.org> (raw)
In-Reply-To: <200302151346.h1FDkw3B005865@stubby.bodenonline.com> (jan.h.d@swipnet.se)

    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.

    The attached patch fixes just one place, a better patch would be to
    introduce an emacs_get_tty_pgrp or something and call that from
    these two places.

Would you like to do that?

  reply	other threads:[~2003-02-17  7:19 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-15 12:52 [angeloff@acm.org: Emacs bug with Solaris 9 (only)] Jan D.
2003-02-17  7:19 ` Richard Stallman [this message]
2003-02-17 13:21   ` Jan D.
2003-02-17 20:38     ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2003-02-16  5:54 Markus Rost
2003-02-15 21:59 Jan D.
2003-01-23 20:01 Markus Rost
2003-01-23  8:01 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=E18kfYO-0007TE-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.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.