summary refs log tree commit diff
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-10 21:48:21 +0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-07-10 21:48:21 +0200
commitd0eb970fb4d3b5c347506b77f9657fc5eb6229e2 (patch)
treeec65865df617a32e2509c6e4106e2853058f1f2d
parentedbfe2232e275a9e6c10cd8eb4dc36ca992af084 (diff)
downloadguix-d0eb970fb4d3b5c347506b77f9657fc5eb6229e2.tar.gz
Fix broken Pid constructor
-rw-r--r--src/libutil/util.cc7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index faa2b83c37..6df93f12a0 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;
 }