1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* win32/win32.c (rb_w32_pipe_exec): need to close original socket

handle.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2004-12-08 08:38:59 +00:00
parent a0b3060708
commit 3f56463129
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,8 @@
Wed Dec 8 17:37:33 2004 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (rb_w32_pipe_exec): need to close original socket
handle.
Wed Dec 8 14:31:36 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
* sprintf.c (rb_f_sprintf): [ruby-dev:25104]

View file

@ -780,14 +780,12 @@ rb_w32_pipe_exec(const char *cmd, const char *prog, int mode, int *pipe)
/* associate handle to file descritor */
*pipe = rb_w32_open_osfhandle((long)hDupFile, pipemode);
CloseHandle(hOrg);
if (*pipe == -1) {
CloseHandle(hOrg);
CloseHandle(hDupFile);
CloseChildHandle(child);
break;
}
if (!(reading && writing))
CloseHandle(hOrg);
ret = child->pid;
} while (0));