Fix broken Pid constructor

This commit is contained in:
Eelco Dolstra 2014-07-10 21:48:21 +02:00
parent edbfe2232e
commit d0eb970fb4

View file

@ -708,17 +708,14 @@ void AutoCloseDir::close()
Pid::Pid() Pid::Pid()
: pid(-1), separatePG(false), killSignal(SIGKILL)
{ {
pid = -1;
separatePG = false;
killSignal = SIGKILL;
} }
Pid::Pid(pid_t pid) Pid::Pid(pid_t pid)
: pid(pid), separatePG(false), killSignal(SIGKILL)
{ {
Pid();
*this = pid;
} }