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-11-14 08:36:16 +0300
committerChristopher Faylor <me@cgf.cx>2005-11-14 08:36:16 +0300
commit5a0826c3f84178498d91cd703d97791a691f6b30 (patch)
treec22575ad34b31a92cad5a2448368327603a63b1d /winsup/cygwin/fhandler.h
parent59297e046420341bea04797159ee62b544c2295d (diff)
* fhandler.h (fhandler_console::fixup_after_fork_exec): Declare new function.
(fhandler_console::fixup_after_fork): Use fixup_after_fork_exec. (fhandler_console::fixup_after_exec): Ditto. * fhandler_console.cc (fhandler_console::fixup_after_fork): Delete definition. (fhandler_console::fixup_after_fork_exec): Rename from fixup_after_exec. * pinfo.cc (_pinfo::set_ctty): Don't play with console count here. * syscalls.cc (close_all_files): Don't close cygheap ctty if hExeced since the child will be copying information from us. (setsid): Use myctty() rather than raw ctty #.
Diffstat (limited to 'winsup/cygwin/fhandler.h')
-rw-r--r--winsup/cygwin/fhandler.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 66ccf1e83..3e61f8297 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -909,9 +909,10 @@ class fhandler_console: public fhandler_termios
select_record *select_read (select_record *s);
select_record *select_write (select_record *s);
select_record *select_except (select_record *s);
- void fixup_after_exec ();
+ void fixup_after_fork_exec ();
+ void fixup_after_exec () {fixup_after_fork_exec ();}
+ void fixup_after_fork (HANDLE) {fixup_after_fork_exec ();}
void set_close_on_exec (bool val);
- void fixup_after_fork (HANDLE parent);
void set_input_state ();
void send_winch_maybe ();
static tty_min *get_tty_stuff (int);