From d0eb970fb4d3b5c347506b77f9657fc5eb6229e2 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 10 Jul 2014 21:48:21 +0200 Subject: Fix broken Pid constructor --- src/libutil/util.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/libutil/util.cc b/src/libutil/util.cc index faa2b83c372a..6df93f12a0c6 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; } -- cgit 1.4.1