From 7c578a4fa0f56b7ab84755933ab88cb9fcfc172b Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 20 Dec 2005 18:14:42 +0000 Subject: * fhandler.h (fhandler_termios::fixup_after_exec): Make non-inlined. * fhandler_termios.cc (fhandler_termios::fixup_after_exec): Don't call fixup_after_fork if close_on_exec'ed. --- 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 101a595fd..d607ea6b4 100644 --- a/winsup/cygwin/fhandler_termios.cc +++ b/winsup/cygwin/fhandler_termios.cc @@ -357,6 +357,13 @@ fhandler_termios::line_edit (const char *rptr, int nread, termios& ti) return ret; } +void +fhandler_termios::fixup_after_exec () +{ + if (!close_on_exec ()) + fixup_after_fork (NULL); +} + void fhandler_termios::fixup_after_fork (HANDLE parent) { -- cgit v1.2.3