Sean O'halpin wrote:
> On Wed, Apr 1, 2009 at 2:50 PM, Robert Klemme
> <shortcutter / googlemail.com> wrote:
>>
>> Hm, works for me:
>>
>> 15:49:23 bas$ allruby -e 'puts Time.now; sleep 0; puts Time.now'
>> CYGWIN_NT-5.1 padrklemme1 1.5.25(0.156/4/2) 2008-06-12 19:34 i686 Cygwin
> 
> Looks like a Mac OSX thing then. I've filed a bug report. Is there
> anyone else out there with ruby 1.9 on OSX (10.4 or 10.5) who can
> confirm that this is a problem?

$ uname -a
Darwin Machine.local 8.11.0 Darwin Kernel Version 8.11.0: Wed Oct 10 
18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC Power Macintosh 
powerpc

$ ruby-1.9 -v
ruby 1.9.1p0 (2009-01-30 revision 21907) [powerpc-darwin8.11.0]

$ ruby-1.9 -r Timeout -e 'Timeout.timeout(1) {sleep(0)}'
-e:1:in `sleep': execution expired (Timeout::Error)
        from -e:1:in `block in <main>'
        from -e:1:in `<main>'
$

Seems to be a problem here, too.
-- 
Posted via http://www.ruby-forum.com/.