Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-12-20 21:14:42 +0300
committerChristopher Faylor <me@cgf.cx>2005-12-20 21:14:42 +0300
commit7c578a4fa0f56b7ab84755933ab88cb9fcfc172b (patch)
tree78330871abc22fab6c10452fd8b176adddbb2e07 /winsup/cygwin/fhandler_termios.cc
parente5340d82b2653fb9fb066bd471fa47aafa68360e (diff)
* 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 101a595fd..d607ea6b4 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);