Merge pull request #13 from darrinholst/master

stop server with SIGINT
This commit is contained in:
John Bintz 2012-01-30 08:52:15 -08:00
commit 4d7d44a07a

View File

@ -18,9 +18,9 @@ module Guard
def stop
if File.file?(pid_file)
system %{kill -KILL #{File.read(pid_file).strip}}
system %{kill -SIGINT #{File.read(pid_file).strip}}
wait_for_no_pid if $?.exitstatus == 0
FileUtils.rm pid_file
FileUtils.rm pid_file, :force => true
end
end