Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix warnings #10

Open
wants to merge 1 commit into from

1 participant

Olek Janiszewski
Olek Janiszewski

Fix warning: assigned but unused variable - sess_id
Fix warning: assigned but unused variable - pid

Olek Janiszewski exviva Fix warnings
Fix `warning: assigned but unused variable - sess_id`
Fix `warning: assigned but unused variable - pid`
0a3f9f8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Feb 21, 2014
  1. Olek Janiszewski

    Fix warnings

    exviva authored
    Fix `warning: assigned but unused variable - sess_id`
    Fix `warning: assigned but unused variable - pid`
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/daemons/daemonize.rb
6 lib/daemons/daemonize.rb
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
Something went wrong with that request. Please try again.