This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new a294d7a  Replace deprecated method
a294d7a is described below

commit a294d7a50b005d313b9c19adb0df900c0336bb75
Author: Sebb <[email protected]>
AuthorDate: Tue Nov 24 16:35:19 2020 +0000

    Replace deprecated method
---
 tools/pubsub.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tools/pubsub.rb b/tools/pubsub.rb
index fccea70..ddbe048 100644
--- a/tools/pubsub.rb
+++ b/tools/pubsub.rb
@@ -89,9 +89,9 @@ end
 
 # Either kill old process, or start a new one
 if options.kill
-  if File.exists? options.pidfile
+  if File.exist? options.pidfile
     Process.kill 'TERM', File.read(options.pidfile).to_i
-    File.delete options.pidfile if File.exists? options.pidfile
+    File.delete options.pidfile if File.exist? options.pidfile
     exit 0
   end
 else
@@ -108,7 +108,7 @@ else
   # PID file management
   if writable
     File.write options.pidfile, Process.pid.to_s
-    at_exit { File.delete options.pidfile if File.exists? options.pidfile }
+    at_exit { File.delete options.pidfile if File.exist? options.pidfile }
   else
     STDERR.puts "EACCES: Skipping creation of pidfile #{options.pidfile}"
   end

Reply via email to