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

* 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
This commit is contained in:
usa 2016-09-30 17:03:48 +00:00
parent ed2af78b67
commit c82d87444b
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sat Oct 1 02:02:02 2016 NAKAMURA Usaku <usa@ruby-lang.org>
* win32/win32.c (poll_child_status): rb_w32_wait_events_blocking() sets
errno internally, then should not set it here.
Fri Sep 30 19:06:21 2016 Anton Davydov <mail@davydovanton.com> Fri Sep 30 19:06:21 2016 Anton Davydov <mail@davydovanton.com>
* lib/uri/http.rb: Documentation and code style imrovements. * lib/uri/http.rb: Documentation and code style imrovements.

View file

@ -4345,7 +4345,6 @@ poll_child_status(struct ChildRecord *child, int *stat_loc)
if (!GetExitCodeProcess(child->hProcess, &exitcode)) { if (!GetExitCodeProcess(child->hProcess, &exitcode)) {
/* If an error occurred, return immediately. */ /* If an error occurred, return immediately. */
error_exit:
err = GetLastError(); err = GetLastError();
switch (err) { switch (err) {
case ERROR_INVALID_PARAMETER: case ERROR_INVALID_PARAMETER:
@ -4358,6 +4357,7 @@ poll_child_status(struct ChildRecord *child, int *stat_loc)
errno = map_errno(err); errno = map_errno(err);
break; break;
} }
error_exit:
CloseChildHandle(child); CloseChildHandle(child);
return -1; return -1;
} }