* pinfo.cc (pinfo::init): Don't close input handle on temporary (?) failure.

This commit is contained in:
Christopher Faylor 2005-01-11 16:58:31 +00:00
parent d1adad9045
commit 7730395470
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-01-11 Christopher Faylor <cgf@timesys.com>
* pinfo.cc (pinfo::init): Don't close input handle on temporary (?)
failure.
2005-01-11 Christopher Faylor <cgf@timesys.com>
* pinfo.h (_pinfo::set_exit_state): Declare new function.

View File

@ -230,7 +230,8 @@ pinfo::init (pid_t n, DWORD flag, HANDLE in_h)
else
{
debug_printf ("MapViewOfFileEx(%p, in_h %p) failed, %E", h, in_h);
CloseHandle (h);
if (h != in_h)
CloseHandle (h);
}
if (i < 9)
continue;