summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-28 07:15:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-28 07:15:56 +0000
commit21f81885ab310f564fb60bfe7dcde816eeb11994 (patch)
treed5b3f4dc354405854a354ba1c80a0f333dc906cb /io.c
parentb3ffb68b5bacd05af67c3b8b51c9209d184e3a60 (diff)
win32.c: rb_w32_dup2
* win32/win32.c (rb_w32_dup2): extract from rb_cloexec_dup2() and redirect_dup2(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/io.c b/io.c
index 053e8f3b0e..9cdec945bf 100644
--- a/io.c
+++ b/io.c
@@ -275,10 +275,6 @@ rb_cloexec_dup2(int oldfd, int newfd)
}
#else
ret = dup2(oldfd, newfd);
-# ifdef _WIN32
- if (newfd >= 0 && newfd <= 2)
- SetStdHandle(newfd == 0 ? STD_INPUT_HANDLE : newfd == 1 ? STD_OUTPUT_HANDLE : STD_ERROR_HANDLE, (HANDLE)rb_w32_get_osfhandle(newfd));
-# endif
#endif
if (ret == -1) return -1;
}