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:
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index bb84574d4..b436c88c6 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -663,6 +663,14 @@ dtable::fixup_before_fork (DWORD target_proc_id)
}
void
+dtable::move_fd (int from, int to)
+{
+ // close (to); /* It is assumed that this is close-on-exec */
+ fds[to] = fds[from];
+ fds[from] = NULL;
+}
+
+void
dtable::fixup_before_exec (DWORD target_proc_id)
{
lock ();