diff options
author | Eric Wong <e@80x24.org> | 2022-01-11 18:21:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2022-01-21 20:29:57 +0000 |
commit | bf9787ac517fe19af5fd6ba918a66b220fcbc923 (patch) | |
tree | e30cf4a74c599bb8037f41340fc1ed8800d8af4c /lib/dtas/sigevent/fiddle_efd.rb | |
parent | 88a8d4793473259b392241f1e2d20d39bd96b214 (diff) | |
download | dtas-bf9787ac517fe19af5fd6ba918a66b220fcbc923.tar.gz |
This ought to save some memory for dtas-player and dtas-readahead users with multiple instances of the same track(s) on their track list.
Diffstat (limited to 'lib/dtas/sigevent/fiddle_efd.rb')
-rw-r--r-- | lib/dtas/sigevent/fiddle_efd.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/dtas/sigevent/fiddle_efd.rb b/lib/dtas/sigevent/fiddle_efd.rb index 40cec77..ec9ec65 100644 --- a/lib/dtas/sigevent/fiddle_efd.rb +++ b/lib/dtas/sigevent/fiddle_efd.rb @@ -1,4 +1,4 @@ -# Copyright (C) 2013-2020 all contributors <dtas-all@nongnu.org> +# Copyright (C) all contributors <dtas-all@nongnu.org> # License: GPL-3.0+ <https://www.gnu.org/licenses/gpl-3.0.txt> # frozen_string_literal: true @@ -13,7 +13,7 @@ class DTAS::Sigevent # :nodoc: Fiddle::TYPE_INT) # fd attr_reader :to_io - ONE = [ 1 ].pack('Q').freeze + ONE = -([ 1 ].pack('Q')) def initialize fd = EventFD.call(0, 02000000|00004000) # EFD_CLOEXEC|EFD_NONBLOCK |