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:
parent
ed2af78b67
commit
c82d87444b
2 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
||||
* lib/uri/http.rb: Documentation and code style imrovements.
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue