lib/vlc-client/server.rb
# Starts a VLC instance in a subprocess
#
# @return [Integer] the terminated subprocess PID or nil if the stop command
#                     as no effect (e.g. VLC not running)
#
Starts a VLC instance in a subprocess
Starts a VLC instance in a subprocess
def stop
      return nil if not running?
      pid = @pid
      Process.kill('INT', @pid)
      @pid = NullObject.new
      @deamon = false
      pid
    end
def stop return nil if not running? pid = @pid Process . kill ( 'INT' , @pid ) @pid = NullObject . new @deamon = false pid end
Starts a VLC instance in a subprocess
Starts a VLC instance in a subprocess
the terminated subprocess PID or nil if the stop command as no effect
the terminated subprocess PID or nil if the stop command as no effect
Integer