unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alexandre Duret-Lutz <adl@gnu.org>
Cc: adl@gnu.org
Subject: sit-for + </dev/zero = SIGHUP
Date: Sun, 15 Jun 2003 01:28:03 +0200	[thread overview]
Message-ID: <2003-06-15-01-28-03+8343+duret_g@lrde.epita.fr> (raw)

This bug report will be sent to the Free Software Foundation,
not to your local site managers!
Please write in English, because the Emacs maintainers do not have
translators to read other languages for them.

Your bug report will be posted to the bug-gnu-emacs@gnu.org mailing list,
and to the gnu.emacs.bug news group.

In GNU Emacs 21.3.2 (i386-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
 of 2003-04-24 on raven, modified by Debian
configured using `configure  i386-linux --prefix=/usr --sharedstatedir=/var/lib --libexecdir=/usr/lib --localstatedir=/var/lib --infodir=/usr/share/info --mandir=/usr/share/man --with-pop=yes --with-x=yes --with-x-toolkit=athena --without-gif'
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: C
  locale-coding-system: nil
  default-enable-multibyte-characters: nil

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Hi People,

The following command causes Emacs to die on a SIGHUP.

% emacs -batch -q -no-site-file -eval '(sit-for 1)' </dev/null    
zsh: hangup     emacs --batch -q -no-site-file -eval '(sit-for 1)' < /dev/null

I would expect --batch to work when stdin is empty or closed, but
since sit-for is used in many places in Emacs that is obviously not
the case.


[ FWIW, the above issue can cause a configure test (AM_PATH_LISPDIR)
from Automake to fail.  This test runs the following command to list
all the load paths of Emacs, and will SIGHUP if one of the site
el-files calls sit-for.

% emacs -batch -q -eval '(while load-path (princ (concat (car load-path)
"\n")) (setq load-path (cdr load-path)))' </dev/null
No /etc/mailname. Reverting to default...
zsh: hangup     emacs -batch -q -eval  < /dev/null

The rational for using </dev/null here is that people have run across
flavors of emacs that do not honor any option and would otherwise
start in interactive mode (requiring users to type C-x C-c to continue
the ./configure script!). ]

                 reply	other threads:[~2003-06-14 23:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=2003-06-15-01-28-03+8343+duret_g@lrde.epita.fr \
    --to=adl@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).