diff options
author | Eric Wong <e@80x24.org> | 2017-03-22 01:38:30 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2017-03-22 01:39:37 +0000 |
commit | 58c38861d6cb540e5a4239bc2d88df3865ffe1c8 (patch) | |
tree | 02bf471e227d60d42006133fd17fc9f1eb52fc97 /ext | |
parent | 67217af099363633adf16a15fb0bddbd9d015176 (diff) | |
download | sleepy_penguin-58c38861d6cb540e5a4239bc2d88df3865ffe1c8.tar.gz |
We only support modern Rubies, so IO#autoclose= is implicit and we should not be wasting bytecode checking for it.
Diffstat (limited to 'ext')
-rw-r--r-- | ext/sleepy_penguin/kqueue.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ext/sleepy_penguin/kqueue.c b/ext/sleepy_penguin/kqueue.c index 114e78a..430bc88 100644 --- a/ext/sleepy_penguin/kqueue.c +++ b/ext/sleepy_penguin/kqueue.c @@ -101,11 +101,10 @@ static struct kq_per_thread *kpt_get(int nchanges, int nevents) * Creates a new Kqueue::IO object. This is a wrapper around the kqueue(2) * system call which creates a Ruby IO object around the kqueue descriptor. * - * kqueue descriptors are automatically invalidated across fork, so care - * must be taken when forking. + * kqueue descriptors are automatically invalidated by the OS across fork, + * so care must be taken when forking. * Setting IO#autoclose=false is recommended for applications which fork - * after kqueue creation. Ruby 1.8 does not have IO#autoclose=, so using - * this class is not recommended under Ruby 1.8 + * after kqueue creation. */ static VALUE s_new(VALUE klass) { |