about summary refs log tree commit homepage
path: root/lib/yahns/daemon.rb
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2015-10-28 02:03:46 +0000
committerEric Wong <e@80x24.org>2015-10-28 23:22:28 +0000
commit963e6b5d24659da316fd57a91b8229683c3c6df2 (patch)
treeb187d1cffb9585a59c5533880cbb4a3ec9ac7b61 /lib/yahns/daemon.rb
parent645ba2ec8351b07da16d60a68dbce540172e1b49 (diff)
downloadyahns-963e6b5d24659da316fd57a91b8229683c3c6df2.tar.gz
Reduce unnecessary arguments to "exit" and "exit!".  Additionally,
rely on a "putnil" instruction rather than a "putstring" argument
with an unnecessary string operand for an uncommon code path.
Diffstat (limited to 'lib/yahns/daemon.rb')
-rw-r--r--lib/yahns/daemon.rb4
1 files changed, 2 insertions, 2 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