1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00

apply #14641, fix comment

git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@645 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
evanweaver 2007-10-11 18:12:33 +00:00
parent a3d0ed5909
commit 23c2aab298

View file

@ -79,15 +79,19 @@ module Mongrel
File.unlink(@pid_file) if @pid_file and File.exists?(@pid_file)
end
# Writes the PID file but only if we're on windows.
# Writes the PID file if we're not on Windows.
def write_pid_file
if RUBY_PLATFORM !~ /mswin/
log "Writing PID file to #{@pid_file}"
open(@pid_file,"w") {|f| f.write(Process.pid) }
open(@pid_file,"w") do |f|
f.write(Process.pid)
File.chmod(0644, @pid_file)
end
end
end
# generates a class for cloaking the current self and making the DSL nicer
# Generates a class for cloaking the current self and making the DSL nicer.
def cloaking_class
class << self
self