guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

338/376: Don't wait for PID -1


From: Ludovic Courtès
Subject: 338/376: Don't wait for PID -1
Date: Wed, 28 Jan 2015 22:06:02 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit e529823635c8efee0d96a73fb90117ac81040710
Author: Eelco Dolstra <address@hidden>
Date:   Wed Dec 10 13:53:04 2014 +0100

    Don't wait for PID -1
    
    The pid field can be -1 if forking the substituter process failed.
---
 src/libstore/local-store.cc |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index fc48c04..9bd0317 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -358,7 +358,8 @@ LocalStore::~LocalStore()
             i->second.to.close();
             i->second.from.close();
             i->second.error.close();
-            i->second.pid.wait(true);
+            if (i->second.pid != -1)
+                i->second.pid.wait(true);
         }
     } catch (...) {
         ignoreException();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]