guix-commits
[Top][All Lists]
Advanced

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

48/376: Fix broken Pid constructor


From: Ludovic Courtès
Subject: 48/376: Fix broken Pid constructor
Date: Wed, 28 Jan 2015 22:03:57 +0000

civodul pushed a commit to tag 1.8
in repository guix.

commit d0eb970fb4d3b5c347506b77f9657fc5eb6229e2
Author: Eelco Dolstra <address@hidden>
Date:   Thu Jul 10 21:48:21 2014 +0200

    Fix broken Pid constructor
---
 src/libutil/util.cc |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index faa2b83..6df93f1 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -708,17 +708,14 @@ void AutoCloseDir::close()
 
 
 Pid::Pid()
+    : pid(-1), separatePG(false), killSignal(SIGKILL)
 {
-    pid = -1;
-    separatePG = false;
-    killSignal = SIGKILL;
 }
 
 
 Pid::Pid(pid_t pid)
+    : pid(pid), separatePG(false), killSignal(SIGKILL)
 {
-    Pid();
-    *this = pid;
 }
 
 



reply via email to

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