From e935fcf08a59db8d8231de60c2279a04c6c6d554 Mon Sep 17 00:00:00 2001 From: Egor Duda Date: Mon, 12 Mar 2001 21:27:42 +0000 Subject: * fhandler.h (fhandler_termios::fixup_after_exec): New function. * fhandler.cc (fhandler_termios::fixup_after_fork): New function. Fixup output handle. * fhandler_tty.cc (fhandler_tty_common::fixup_after_fork): Output handle is now fixed up in fhandler_termios::fixup_after_fork(). --- winsup/cygwin/fhandler_termios.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'winsup/cygwin/fhandler_termios.cc') diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc index 046199903..7b8c71feb 100644 --- a/winsup/cygwin/fhandler_termios.cc +++ b/winsup/cygwin/fhandler_termios.cc @@ -308,3 +308,10 @@ fhandler_termios::line_edit (const char *rptr, int nread, int always_accept) return input_done; } + +void +fhandler_termios::fixup_after_fork (HANDLE parent) +{ + this->fhandler_base::fixup_after_fork (parent); + fork_fixup (parent, get_output_handle (), "output_handle"); +} -- cgit v1.2.3