unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stefan Monnier" <monnier+gnu/emacs@rum.cs.yale.edu>
Cc: emacs-devel@gnu.org
Subject: Re: call-process vs start-process
Date: Wed, 26 Jun 2002 10:15:42 -0400	[thread overview]
Message-ID: <200206261415.g5QEFhT12017@rum.cs.yale.edu> (raw)
In-Reply-To: E17Mzoc-0000CD-00@fencepost.gnu.org

>     When using `start-process' the child process seems to be killed by a
>     SIGHUP from emacs. Is this OK? Is emacs supposed to send SIGHUP to the
>     child process?
> 
> I believe this is normal.  Emacs does not explicitly send SIGHUP.  It
> probably results from Emacs's closing the pty.

Indeed, I think it's difficult for Emacs to fix your problem without
introducing others in other circumstances.  Instead, `xdvi' should be
changed to explicitly ignore SIGHUP after the fork.  After all,
the same problem can happen if you open an xterm, run the xdvi command
and close the xterm after the `xdvi' command returns but before the
forked `xdvi' process terminates (which usually wouldn't happen because
the time window is short, but if the machine is heavily loaded or if
the forked `xdvi' ends up having to wait for something like the Xserver,
this can happen).


	Stefan

      reply	other threads:[~2002-06-26 14:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200206241421.aa27980@gremlin-relay.ics.uci.edu>
2002-06-25 23:33 ` call-process vs start-process Richard Stallman
2002-06-26 14:15   ` Stefan Monnier [this message]

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200206261415.g5QEFhT12017@rum.cs.yale.edu \
    --to=monnier+gnu/emacs@rum.cs.yale.edu \
    --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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).