From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, T_RP_MATCHES_RCVD shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: sleepy-penguin@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id EDCA32042E; Mon, 7 Dec 2015 04:16:04 +0000 (UTC) From: Eric Wong To: sleepy-penguin@bogomips.org Cc: Eric Wong Subject: [PATCH] note the epoll/io.rb file is only for Ruby 1.8 Date: Mon, 7 Dec 2015 04:15:51 +0000 Message-Id: <20151207041551.6393-1-normalperson@yhbt.net> List-Id: I was reading the code after a while and wonder why it was still doing archaic things like Time.now... I'm not sure how much longer it's worth supporting 1.8. Maybe the next release can remove it. --- lib/sleepy_penguin/epoll/io.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sleepy_penguin/epoll/io.rb b/lib/sleepy_penguin/epoll/io.rb index d5540c2..055f574 100644 --- a/lib/sleepy_penguin/epoll/io.rb +++ b/lib/sleepy_penguin/epoll/io.rb @@ -1,5 +1,8 @@ class SleepyPenguin::Epoll::IO # :stopdoc: + + # This is only for Ruby 1.8 using green threads + alias __epoll_wait epoll_wait undef_method :epoll_wait def epoll_wait(maxevents = 64, timeout = nil) -- EW