unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be
@ 2022-10-11 13:48 Morten Welinder
  2022-10-12 11:22 ` Lars Ingebrigtsen
  2022-10-12 15:31 ` Mattias Engdegård
  0 siblings, 2 replies; 19+ messages in thread
From: Morten Welinder @ 2022-10-11 13:48 UTC (permalink / raw)
  To: 58440

1. Create the following perl script named "ttt":

#!/usr/bin/perl -w
use strict;
my $rc = system($ENV{EDITOR});
my $err = $?;
print STDERR "\nrc=$rc  err=$err\n";

2. Run   EDITOR='/usr/bin/emacs -Q' ./ttt
Emacs comes up normally

3. In shell window, press Ctrl-C
Observe: "rc=0  err=0"
Expected: non-zero values

4. Run   EDITOR='xterm -e /usr/bin/emacs -Q' ./ttt
Emacs comes up normally as does an xterm window

5. In shell window, press Ctrl-C
Observe: "rc=512  err=512"
This is what's expected.


M.






TL;DR for below: openSUSE Leap 15.4 system; no local changes

In GNU Emacs 27.2 (build 1, x86_64-suse-linux-gnu, GTK+ Version
3.24.31, cairo version 1.16.0)
Windowing system distributor 'The X.Org Foundation', version 11.0.12003000
System Description: openSUSE Leap 15.4

Recent messages:
[irrelevant -- different process]

Configured using:
 'configure --disable-build-details --with-pop --without-hesiod
 --with-gameuser=:games --with-kerberos --with-kerberos5
 --with-file-notification=inotify --with-modules --enable-autodepend
 --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
 --datadir=/usr/share --localstatedir=/var --sharedstatedir=/var/lib
 --libexecdir=/usr/lib
 --enable-locallisppath=/usr/share/emacs/27.2/site-lisp:/usr/share/emacs/site-lisp
 --with-x --with-xim --with-sound --with-xpm --with-jpeg --with-tiff
 --with-gif --with-png --with-rsvg --with-dbus --with-xft --without-gpm
 --with-x-toolkit=gtk3 --with-toolkit-scroll-bars
 --x-includes=/usr/include --x-libraries=/usr/lib64 --with-libotf
 --with-m17n-flt --with-cairo --with-xwidgets --build=x86_64-suse-linux
 --with-dumping=pdumper 'CFLAGS=-fmessage-length=0 -grecord-gcc-switches
 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables
 -fasynchronous-unwind-tables -fstack-clash-protection -g -D_GNU_SOURCE
 -DGDK_DISABLE_DEPRECATION_WARNINGS -DGLIB_DISABLE_DEPRECATION_WARNINGS
 -pipe -Wno-pointer-sign -Wno-unused-variable -Wno-unused-label
 -fno-optimize-sibling-calls -fno-PIE -DSYSTEM_PURESIZE_EXTRA=55000
 -DSITELOAD_PURESIZE_EXTRA=10000 -DPDMP_BASE='\''"emacs-gtk"'\'''
 'LDFLAGS=-Wl,-no-pie -Wl,-O2''

Configured features:
XPM JPEG TIFF GIF PNG RSVG CAIRO SOUND DBUS GSETTINGS GLIB NOTIFY
INOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF
ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 XDBE XIM MODULES THREADS XWIDGETS
LIBSYSTEMD JSON PDUMPER LCMS2 GMP

Important settings:
  value of $LC_NUMERIC: POSIX
  value of $LANG: en_US.utf8
  value of $XMODIFIERS: @im=local
  locale-coding-system: utf-8-unix

Major mode: Perl

Minor modes in effect:
  show-paren-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/usr/share/emacs/site-lisp/site-start.d/lilypond-init hides
/usr/share/emacs/site-lisp/lilypond-init

Features:
(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs
format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg
epg-config gnus-util rmail rmail-loaddefs text-property-search seq
byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date subr-x
cl-loaddefs cl-lib perl-mode paren preview-latex auto-loads tex-site
ispell delsel lpr easy-mmode pcase tooltip eldoc electric uniquify
ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer
select scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite charscript charprop case-table epa-hook
jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting xwidget-internal cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process emacs)

Memory information:
((conses 16 51780 9816)
 (symbols 48 6350 1)
 (strings 32 17400 2316)
 (string-bytes 1 943121)
 (vectors 16 10821)
 (vector-slots 8 176612 9102)
 (floats 8 24 40)
 (intervals 56 326 0)
 (buffers 1000 13))





^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2022-10-13 19:35 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11 13:48 bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be Morten Welinder
2022-10-12 11:22 ` Lars Ingebrigtsen
2022-10-12 14:23   ` Eli Zaretskii
2022-10-12 14:41     ` Lars Ingebrigtsen
2022-10-12 15:40       ` Eli Zaretskii
2022-10-12 15:31 ` Mattias Engdegård
2022-10-12 15:46   ` Lars Ingebrigtsen
2022-10-12 15:54     ` Lars Ingebrigtsen
2022-10-12 17:39       ` Mattias Engdegård
2022-10-13  6:34         ` Lars Ingebrigtsen
2022-10-13  8:05           ` Mattias Engdegård
2022-10-13  8:12             ` Lars Ingebrigtsen
2022-10-13 10:31               ` Eli Zaretskii
2022-10-13 11:31                 ` Lars Ingebrigtsen
2022-10-13 13:16                   ` Mattias Engdegård
2022-10-13 15:51                     ` Eli Zaretskii
2022-10-13 19:03                       ` Lars Ingebrigtsen
2022-10-13 19:35                         ` Eli Zaretskii
2022-10-13 16:33                   ` Eli Zaretskii

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