diff options
author | Tomas Volf <~@wolfsden.cz> | 2025-05-02 18:58:55 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2025-05-05 12:15:55 +0200 |
commit | a2282c68ff841ad05dd4fefa86cf0bff6a255660 (patch) | |
tree | 0e9e5a0b3f1dfcceb691c61c8bcffd966f7feafd | |
parent | 79bc4ebb332d30c31913164b18105c6d8e637c7a (diff) | |
download | guix-a2282c68ff841ad05dd4fefa86cf0bff6a255660.tar.gz guix-a2282c68ff841ad05dd4fefa86cf0bff6a255660.zip |
environment: Restore action for SIGPIPE.
Code in `ui.scm' in `initialize-guix' procedure changes the handling of
SIGPIPE to SIG_IGN. So restore the handling to SIG_DFL so that process
executed will have the usual action. Technically we should record what the
handling was, and restore it to the previous value, but that would be much
more invasive change.
Always setting it to SIG_DFL is at least less surprising than always setting
to SIG_IGN.
* guix/scripts/environment.scm (launch-environment): Restore default action
for SIGPIPE.
Change-Id: Ifabae1d3e71aa44e63078cea5bd3824b8f61ba14
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r-- | guix/scripts/environment.scm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guix/scripts/environment.scm b/guix/scripts/environment.scm index 648a497743..7185c3ebd0 100644 --- a/guix/scripts/environment.scm +++ b/guix/scripts/environment.scm @@ -506,6 +506,8 @@ cache." ;; Properly handle SIGINT, so pressing C-c in an interactive terminal ;; application works. (sigaction SIGINT SIG_DFL) + ;; Restore original action for SIGPIPE. + (sigaction SIGPIPE SIG_DFL) (load-profile profile manifest #:pure? pure? #:white-list-regexps white-list) |