loolwsd: close forkit write pipe fd before spawning new forkit

Change-Id: Ib3438359f581ded460a4dcd1514c351d20f7e947
Reviewed-on: https://gerrit.libreoffice.org/30889
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian 2016-11-15 08:01:07 -05:00 committed by Ashod Nakashian
parent b47550e566
commit 33b7a89947

View file

@ -1998,6 +1998,7 @@ int LOOLWSD::main(const std::vector<std::string>& /*args*/)
}
// Spawn a new forkit and try to dust it off and resume.
close(ForKitWritePipe);
forKitPid = createForKit();
if (forKitPid < 0)
{