aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_termios.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-20 18:14:42 +0000
committerChristopher Faylor <me@cgf.cx>2005-12-20 18:14:42 +0000
commit7c578a4fa0f56b7ab84755933ab88cb9fcfc172b (patch)
tree78330871abc22fab6c10452fd8b176adddbb2e07 /winsup/cygwin/fhandler_termios.cc
parente5340d82b2653fb9fb066bd471fa47aafa68360e (diff)
downloadnewlib-7c578a4fa0f56b7ab84755933ab88cb9fcfc172b.zip
newlib-7c578a4fa0f56b7ab84755933ab88cb9fcfc172b.tar.gz
newlib-7c578a4fa0f56b7ab84755933ab88cb9fcfc172b.tar.bz2
* 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.
Diffstat (limited to 'winsup/cygwin/fhandler_termios.cc')
-rw-r--r--winsup/cygwin/fhandler_termios.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc
index 101a595..d607ea6 100644
--- a/winsup/cygwin/fhandler_termios.cc
+++ b/winsup/cygwin/fhandler_termios.cc
@@ -358,6 +358,13 @@ fhandler_termios::line_edit (const char *rptr, int nread, termios& ti)
}
void
+fhandler_termios::fixup_after_exec ()
+{
+ if (!close_on_exec ())
+ fixup_after_fork (NULL);
+}
+
+void
fhandler_termios::fixup_after_fork (HANDLE parent)
{
fhandler_base::fixup_after_fork (parent);