TCPSocket.new causes an infinite loop when interrupted by a signal
ruby 2.2.0dev (2014-02-21 trunk 45076) [x86_64-freebsd10.0]
The script attached in #9356 goes in an infinite loop on FreeBSD (and other platforms conforming to SUSv3).
Naruse-san asked me to create a separate ticket for backporting.
This bug seems to have been introduced by r31424.