lib/fusuma/libinput_command.rb in fusuma-2.0.3 vs lib/fusuma/libinput_command.rb in fusuma-2.0.4

- old
+ new

@@ -40,10 +40,15 @@ o.each(&block) end # @return [Integer] return a latest line libinput debug-events def debug_events(writer) - @debug_events ||= Process.spawn(debug_events_with_options, out: writer, in: '/dev/null') + @debug_events ||= begin + pid = Process.spawn(debug_events_with_options, out: writer, + in: '/dev/null') + Process.detach(pid) + pid + end end # @return [String] command # @raise [SystemExit] def version_command