lib/microget/server_runner.rb
def stop!
    return unless @pid
    
    # Tell the webserver to quit, twice (we do not care if there are running responses)
    %W( TERM TERM KILL ).each {|sig| Process.kill(sig, @pid); sleep 0.5 }
    @pid = nil
    @running = false
    true
  end
# Stops the server by issuing progressively harsher signals to it's process
# (in the order of TERM, TERM, KILL).
#
# @return [TrueClass]
Stops the server by issuing progressively harsher signals to it's process
(in the order of TERM, TERM, KILL).
Stops the server by issuing progressively harsher signals to it ' s process ( in the order of TERM TERM KILL ) .
def stop!
    return unless @pid
    %W( TERM TERM KILL ).each {|sig| Process.kill(sig, @pid); sleep 0.5 }
    @pid = nil
    @running = false
    true
  end
def stop! return unless @pid %W( TERM TERM KILL ) . each { | sig | Process . kill ( sig , @pid ) ; sleep 0.5 } @pid = nil @running = false true end
Stops the server by issuing progressively harsher signals to it's process
(in the order of TERM, TERM, KILL).
Stops the server by issuing progressively harsher signals to it ' s process ( in the order of TERM TERM KILL ) .
# Tell the webserver to quit, twice (we do not care if there are running responses)
None
TrueClass