about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/yahns/daemon.rb4
-rw-r--r--lib/yahns/server.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/yahns/daemon.rb b/lib/yahns/daemon.rb
index a3ffd8b..fde384c 100644
--- a/lib/yahns/daemon.rb
+++ b/lib/yahns/daemon.rb
@@ -46,9 +46,9 @@ module Yahns::Daemon # :nodoc:
         master_pid = (rd.readpartial(16) rescue nil).to_i
         unless master_pid > 1
           warn "master failed to start, check stderr log for details"
-          exit!(1)
+          exit!
         end
-        exit 0
+        exit
       else # yahns master process
         yahns_server.daemon_pipe = wr
       end
diff --git a/lib/yahns/server.rb b/lib/yahns/server.rb
index 513fadb..4501d86 100644
--- a/lib/yahns/server.rb
+++ b/lib/yahns/server.rb
@@ -401,7 +401,7 @@ class Yahns::Server # :nodoc:
       @logger.info("graceful exit aborted, exiting immediately")
       # we will still call any app-defined at_exit hooks here
       # use SIGKILL if you don't want that.
-      exit(0)
+      exit
     end
 
     drop_acceptors # stop acceptors, we close epolls in quit_done
@@ -463,7 +463,7 @@ class Yahns::Server # :nodoc:
     when :CHLD
       reap_reexec
     when :USR1
-      usr1_reopen('')
+      usr1_reopen(nil)
     when :USR2
       reexec
     when :HUP