[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be
From: |
Eli Zaretskii |
Subject: |
bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be |
Date: |
Thu, 13 Oct 2022 22:35:00 +0300 |
> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Mattias EngdegÄrd <mattias.engdegard@gmail.com>,
> 58440@debbugs.gnu.org,
> mwelinder@gmail.com
> Date: Thu, 13 Oct 2022 21:03:19 +0200
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> >> > I'm proposing that we exit on a non-zero value if and when we decide to
> >> > exit after a SIGKILL.
> >>
> >> Done!
> >
> > That was AFAIU a proposal for discussion, not a request to make the
> > change right there and then.
>
> I think that was a joke. đ
"A scalded cat..." and all that.
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > How do you see that we exit with zero status now? I mean, not by
> > looking what the shell says, but by tracing the code which handles
> > SIGINT? I'd like to see what code we are talking about before making
> > up my mind about the change you propose.
>
> I haven't been able to follow the interrupt handling logic (after
> looking at it for a couple minutes), so I don't know.
I hope someone else will be able to do that, then. My reading of the
code is that any fatal signal causes us to exit with exit code 1.
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, (continued)
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Lars Ingebrigtsen, 2022/10/12
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Mattias EngdegÄrd, 2022/10/12
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Lars Ingebrigtsen, 2022/10/13
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Mattias EngdegÄrd, 2022/10/13
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Lars Ingebrigtsen, 2022/10/13
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Eli Zaretskii, 2022/10/13
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Lars Ingebrigtsen, 2022/10/13
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Mattias EngdegÄrd, 2022/10/13
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Eli Zaretskii, 2022/10/13
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Lars Ingebrigtsen, 2022/10/13
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be,
Eli Zaretskii <=
- bug#58440: 27.2; Exit Code on SIGINT is Zero, But shouldn't Be, Eli Zaretskii, 2022/10/13