Skip to content

Commit 5aa4c49

Browse files
committed
...
1 parent 79e5601 commit 5aa4c49

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/daemon_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def no_activity?(seconds)
432432
end
433433

434434
def pid_file_available?
435-
File.exist?(@pid_file) && !File.empty?(@pid_file)
435+
File.exist?(@pid_file) && !File.zero?(@pid_file)
436436
end
437437

438438
# This method does nothing and only serves as a hook for the unit test.
@@ -747,10 +747,10 @@ def ping_tcp_socket(sockaddr)
747747
end
748748

749749
def ruby_interpreter
750-
rb_config = defined?(RbConfig)? RbConfig::CONFIG : Config::CONFIG
750+
rb_config = defined?(RbConfig) ? RbConfig::CONFIG : Config::CONFIG
751751
File.join(
752752
rb_config["bindir"],
753-
rb_config.values_at("RUBY_INSTALL_NAME","EXEEXT").join
753+
rb_config.values_at("RUBY_INSTALL_NAME", "EXEEXT").join
754754
)
755755
end
756756

0 commit comments

Comments
 (0)