summaryrefslogtreecommitdiff
path: root/win32/win32.c
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-30 17:03:48 (GMT)
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-09-30 17:03:48 (GMT)
commitc82d87444b1be0538f213b99f9dd90b7f3680130 (patch)
treec0d3a9b586f06ca461cbd0d2bb3a50d8aa80085e /win32/win32.c
parented2af78b67333c419ba051e27fb7e34e8876edf0 (diff)
* win32/win32.c (poll_child_status): rb_w32_wait_events_blocking() sets
errno internally, then should not set it here. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56310 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/win32.c')
-rw-r--r--win32/win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/win32.c b/win32/win32.c
index f2a7711..a0efcbc 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -4345,7 +4345,6 @@ poll_child_status(struct ChildRecord *child, int *stat_loc)
if (!GetExitCodeProcess(child->hProcess, &exitcode)) {
/* If an error occurred, return immediately. */
- error_exit:
err = GetLastError();
switch (err) {
case ERROR_INVALID_PARAMETER:
@@ -4358,6 +4357,7 @@ poll_child_status(struct ChildRecord *child, int *stat_loc)
errno = map_errno(err);
break;
}
+ error_exit:
CloseChildHandle(child);
return -1;
}