class Guard::Rack::CustomProcess::Windows
Public Instance Methods
kill(pid, _force = true)
click to toggle source
# File lib/guard/rack/custom_process.rb, line 45 def kill(pid, _force = true) # Doesn't matter if its forceful or not. There's only one way of ending it system("taskkill /pid #{pid} /T /f") result = $CHILD_STATUS.exitstatus if result == 0 UI.debug("Killed Rack (Exit status: #{result})") else UI.debug("Couldn't kill Rack") end result end