diff --git a/src/libutil/util.cc b/src/libutil/util.cc index faa2b83c3..6df93f12a 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; }