Issue #10923 has been updated by Tomoyuki Chikanaga.

Backport changed from 2.0.0: REQUIRED, 2.1: DONE, 2.2: REQUIRED to 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE

Backported into `ruby_2_2` branch at r50276.

----------------------------------------
Bug #10923: Bug in io/wait/wait.c
https://bugs.ruby-lang.org/issues/10923#change-52124

* Author: Yura Sokolov
* Status: Closed
* Priority: Normal
* Assignee: 
* ruby -v: trunk, v2.2.x
* Backport: 2.0.0: REQUIRED, 2.1: DONE, 2.2: DONE
----------------------------------------
https://github.com/ruby/ruby/blob/28b9f11d5a4b878adb50a3e5472ceea8c462ed4a/ext/io/wait/wait.c#L64-L65
return value should be wrapped by INT2FIX



-- 
https://bugs.ruby-lang.org/