GNU bug report logs -
#58440
27.2; Exit Code on SIGINT is Zero, But shouldn't Be
Previous Next
Full log
View this message in rfc822 format
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Cc: mwelinder <at> gmail.com, 58440 <at> debbugs.gnu.org
> Date: Wed, 12 Oct 2022 16:41:00 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> > What happens if you say
> >
> > ./src/emacs -Q && echo 'OK'
> >
> > does it say OK when you kill Emacs with SIGINT?
>
> Yes.
That's strange. So the next step is to attach a debugger to Emacs
before delivering SIGINT to it, and see why we don't exit with the
status of 1.
What I verified is that when I do
./src/emacs -Q -nw && echo 'OK'
and then type "kill -INT EMACS-PID" from another terminal, Emacs does
a keyboard quit (i.e. flashes the display and says "Quit" in the
echo-area), which is exactly as I expect. So in the -nw case, the
installed SIGINT handler is called and does what is expected.
This bug report was last modified 2 years and 308 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.