Project

General

Profile

Actions

Backport #6661

closed

Timeout not working with IO on Windows

Added by undur_gongor (Undur Gongor) over 11 years ago. Updated over 11 years ago.

Status:
Closed
[ruby-core:45920]

Description

This code does not time out as expected when run on Ruby 1.9.3p194 (2012-04-20) [i386-mingw32]:

require 'timeout'
Timeout.timeout(1) { gets }

On different Unix-like OSes it does time out after 1 second with different versions of Ruby.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0