diff options
Diffstat (limited to 'lib/yahns/queue_kqueue.rb')
-rw-r--r-- | lib/yahns/queue_kqueue.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/yahns/queue_kqueue.rb b/lib/yahns/queue_kqueue.rb index 2636cee..73e25ad 100644 --- a/lib/yahns/queue_kqueue.rb +++ b/lib/yahns/queue_kqueue.rb @@ -1,6 +1,7 @@ # -*- encoding: binary -*- # Copyright (C) 2013-2015 all contributors <yahns-public@yhbt.net> # License: GPLv3 or later (https://www.gnu.org/licenses/gpl-3.0.txt) +# frozen_string_literal: true # # This is the dangerous, low-level kqueue interface for sleepy_penguin # It is safe as long as you're aware of all potential concurrency @@ -41,7 +42,7 @@ class Yahns::Queue < SleepyPenguin::Kqueue::IO # :nodoc: end def thr_init - Thread.current[:yahns_rbuf] = "" + Thread.current[:yahns_rbuf] = ''.dup Thread.current[:yahns_fdmap] = @fdmap Thread.current[:yahns_queue] = self end |