stop server with SIGINT #13

Merged
darrinholst merged 1 commits from master into master 2012-01-30 16:52:15 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit 963b9e0ab2 - Show all commits

View File

@ -18,9 +18,9 @@ module Guard
def stop def stop
if File.file?(pid_file) 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 wait_for_no_pid if $?.exitstatus == 0
FileUtils.rm pid_file FileUtils.rm pid_file, :force => true
end end
end end