* dtable.cc (dtable::fixup_after_exec): Close any popen'ed file handles here.

* fhandler.h (fhandler_*::ispipe): New function.
(fhandler_base::get_popen_pid): Define virtual function.
(fhandler_*::isdevice): Make const.
(fhandler_*::isfifo): Ditto.
This commit is contained in:
Christopher Faylor
2009-08-18 15:21:47 +00:00
parent 4db8460fdb
commit 421ba492fa
3 changed files with 18 additions and 4 deletions

View File

@ -753,6 +753,8 @@ dtable::fixup_after_exec ()
}
release (i);
}
else if (fh->get_popen_pid ())
close (i);
else if (i == 0)
SetStdHandle (std_consts[i], fh->get_io_handle ());
else if (i <= 2)