aboutsummaryrefslogtreecommitdiffstats
path: root/railties/dispatches
diff options
context:
space:
mode:
Diffstat (limited to 'railties/dispatches')
-rw-r--r--railties/dispatches/gateway.cgi4
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/dispatches/gateway.cgi b/railties/dispatches/gateway.cgi
index d21bf0991a..fb1fa22f04 100644
--- a/railties/dispatches/gateway.cgi
+++ b/railties/dispatches/gateway.cgi
@@ -31,7 +31,7 @@ def listener_socket(number)
File.expand_path(File.join(File.dirname(__FILE__), "../log/drb_gateway/listener_#{number}.sock"))
end
-unless File.exists? TrackerSocket
+unless File.exist? TrackerSocket
message "Starting tracker and #{Listeners} listeners"
fork do
Process.setsid
@@ -62,7 +62,7 @@ unless File.exists? TrackerSocket
ready = false
10.times do
sleep 0.5
- break if (ready = File.exists?(TrackerSocket) && File.exists?(listener_socket(0)))
+ break if (ready = File.exist?(TrackerSocket) && File.exist?(listener_socket(0)))
end
if ready