* fhandler_termios.cc (fhandler_termios::fixup_after_exec): Don't call
fixup_after_fork if close_on_exec'ed.
+2005-12-20 Christopher Faylor <cgf@timesys.com>
+
+ * 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.
+
2005-12-19 Christopher Faylor <cgf@timesys.com>
* cygtls.h (_cygtls::interrupt_now): Subsume interruptible().
virtual DWORD __acquire_output_mutex (const char *fn, int ln, DWORD ms) {return 1;}
virtual void __release_output_mutex (const char *fn, int ln) {}
void fixup_after_fork (HANDLE);
- void fixup_after_exec () { fixup_after_fork (NULL); }
+ void fixup_after_exec ();
void echo_erase (int force = 0);
virtual _off64_t lseek (_off64_t, int);
};
}
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);