# File lib/daemons/pidfile.rb, line 72 def pid=(p) if multiple while File.exist?(filename) and @number < 1024 @number += 1 end if @number == 1024 raise RuntimeException('cannot run more than 1024 instances of the application') end end File.open(filename, 'w') {|f| f.puts p #Process.pid } end