Fixed build on Windows (tl::InputPipe::wait was missing)

This commit is contained in:
Matthias Koefferlein 2018-10-16 23:00:28 +02:00
parent 69c5088278
commit 8ab4868d76
1 changed files with 8 additions and 1 deletions

View File

@ -883,10 +883,17 @@ InputPipe::~InputPipe ()
void
InputPipe::close ()
{
wait ();
}
int InputPipe::wait ()
{
int ret = 0;
if (m_file != NULL) {
fclose (m_file);
ret = _pclose (m_file);
m_file = NULL;
}
return ret;
}
size_t