From d8ac22a13f092731bf29a0399f31f3074764c95d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 20 Dec 2019 01:39:16 +0000 Subject: watchable: use fiddle for inotify support We have String#unpack at our disposal for working with "struct inotify_event", so use it instead of depending on an extension which requires a compiler and development headers to install. --- lib/dtas/watchable/inotify.rb | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 lib/dtas/watchable/inotify.rb (limited to 'lib/dtas/watchable/inotify.rb') diff --git a/lib/dtas/watchable/inotify.rb b/lib/dtas/watchable/inotify.rb new file mode 100644 index 0000000..eface0e --- /dev/null +++ b/lib/dtas/watchable/inotify.rb @@ -0,0 +1,13 @@ +# Copyright (C) 2013-2019 all contributors +# License: GPL-3.0+ +# frozen_string_literal: true +require 'sleepy_penguin' + +# used to restart DTAS::Source::SplitFX processing in dtas-player +# if the YAML file is edited +class DTAS::Watchable::InotifyReadableIter < SleepyPenguin::Inotify # :nodoc: + include DTAS::Watchable::InotifyCommon + def self.new + super(:CLOEXEC) + end +end -- cgit v1.2.3-24-ge0c7