lix/src/libmain
Robert Hensing ee0c195eba
Split ignoreException to avoid suppressing CTRL-C
This splits `ignoreException` into `ignoreExceptionExceptInterrupt`
(which ignores all exceptions except `Interrupt`, which indicates a
SIGINT/CTRL-C) and `ignoreExceptionInDestructor` (which ignores all
exceptions, so that destructors do not throw exceptions).

This prevents many cases where Nix ignores CTRL-C entirely.
See: https://github.com/NixOS/nix/issues/7245

Upstream-PR: https://github.com/NixOS/nix/pull/11618
Change-Id: Ie7d2467eedbe840d1b9fa2e88a4e88e4ab26a87b
2024-10-01 15:49:56 -07:00
..
common-args.cc libmain: add progress bar with multiple status lines 2024-06-22 14:20:27 +02:00
common-args.hh nix: Support the --repair flag 2023-04-28 17:03:04 +02:00
crash-handler.cc main: log stack traces for std::terminate 2024-09-25 14:03:45 -07:00
crash-handler.hh main: log stack traces for std::terminate 2024-09-25 14:03:45 -07:00
lix-main.pc.in packaging: rename nixexpr -> lixexpr and so on 2024-05-23 16:45:23 -06:00
loggers.cc fish-completion: leave the shell prompt intact 2024-09-11 19:03:11 +02:00
loggers.hh libmain: add progress bar with multiple status lines 2024-06-22 14:20:27 +02:00
meson.build main: log stack traces for std::terminate 2024-09-25 14:03:45 -07:00
progress-bar.cc libmain/progress-bar: erase all lines of the multi-line format 2024-09-07 10:37:12 +02:00
progress-bar.hh libmain: better fix for #424, #425 2024-07-02 17:16:30 +02:00
shared.cc Split ignoreException to avoid suppressing CTRL-C 2024-10-01 15:49:56 -07:00
shared.hh main: log stack traces for std::terminate 2024-09-25 14:03:45 -07:00
stack.cc tree-wide: fix a pile of lints 2024-08-08 14:53:17 -07:00