Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix warnings #10

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+3 −3
Split
View
@@ -157,14 +157,14 @@ def call_as_daemon(block, logfile_name = nil, app_name = nil)
rd.close
# Detach from the controlling terminal
- unless sess_id = Process.setsid
+ unless Process.setsid
raise Daemons.RuntimeException.new('cannot detach from controlling terminal')
end
# Prevent the possibility of acquiring a controlling terminal
#if oldmode.zero?
trap 'SIGHUP', 'IGNORE'
- exit if pid = safefork
+ exit if safefork
#end
wr.write Process.pid
@@ -210,7 +210,7 @@ def daemonize(logfile_name = nil, app_name = nil)
# Prevent the possibility of acquiring a controlling terminal
#if oldmode.zero?
trap 'SIGHUP', 'IGNORE'
- exit if pid = safefork
+ exit if safefork
#end
$0 = app_name if app_name