[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
353/376: Don't abort if we get a signal while waiting for the pager
From: |
Ludovic Courtès |
Subject: |
353/376: Don't abort if we get a signal while waiting for the pager |
Date: |
Wed, 28 Jan 2015 22:06:08 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 5a2d45164899479cb3dfe94cb7659fd522163acc
Author: Eelco Dolstra <address@hidden>
Date: Fri Dec 12 14:05:23 2014 +0100
Don't abort if we get a signal while waiting for the pager
---
src/libmain/shared.cc | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/src/libmain/shared.cc b/src/libmain/shared.cc
index 8d06455..7b50bfa 100644
--- a/src/libmain/shared.cc
+++ b/src/libmain/shared.cc
@@ -328,10 +328,14 @@ RunPager::RunPager()
RunPager::~RunPager()
{
- if (pid != -1) {
- std::cout.flush();
- close(STDOUT_FILENO);
- pid.wait(true);
+ try {
+ if (pid != -1) {
+ std::cout.flush();
+ close(STDOUT_FILENO);
+ pid.wait(true);
+ }
+ } catch (...) {
+ ignoreException();
}
}
- 341/376: Use vfork, (continued)
- 341/376: Use vfork, Ludovic Courtès, 2015/01/28
- 345/376: allow custom docbook paths/URLs, use a working URL for docbook.rng, Ludovic Courtès, 2015/01/28
- 344/376: Urgh, Ludovic Courtès, 2015/01/28
- 343/376: Provide default pagers, Ludovic Courtès, 2015/01/28
- 346/376: Don't use ?=, Ludovic Courtès, 2015/01/28
- 347/376: Remove canary stuff, Ludovic Courtès, 2015/01/28
- 348/376: Remove dead code, Ludovic Courtès, 2015/01/28
- 350/376: Doh, Ludovic Courtès, 2015/01/28
- 338/376: Don't wait for PID -1, Ludovic Courtès, 2015/01/28
- 352/376: Get rid of unnecessary "interrupted by the user" message with -vvv, Ludovic Courtès, 2015/01/28
- 353/376: Don't abort if we get a signal while waiting for the pager,
Ludovic Courtès <=
- 351/376: Remove chatty message, Ludovic Courtès, 2015/01/28
- 356/376: Shut up a Valgrind warning, Ludovic Courtès, 2015/01/28
- 349/376: Remove tabs, Ludovic Courtès, 2015/01/28
- 355/376: Fix some memory leaks, Ludovic Courtès, 2015/01/28
- 357/376: Silence some warnings on GCC 4.9, Ludovic Courtès, 2015/01/28
- 358/376: Install cacert before running nix-channel, Ludovic Courtès, 2015/01/28
- 359/376: Better error message, Ludovic Courtès, 2015/01/28
- 362/376: Undocument nix-generate-patches, Ludovic Courtès, 2015/01/28
- 367/376: Fix image in PDF, Ludovic Courtès, 2015/01/28
- 354/376: Ensure we're writing to stderr in the builder, Ludovic Courtès, 2015/01/28