diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/socket/socket.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/socket/socket.c b/ext/socket/socket.c index b815c3f935..e77e3d609f 100644 --- a/ext/socket/socket.c +++ b/ext/socket/socket.c @@ -182,6 +182,7 @@ sock_new(class, fd) fp->f = rb_fdopen(fd, "r"); #ifdef NT fp->finalize = sock_finalize; + fd = myfddup(fd); #else fd = dup(fd); #endif |