# File lib/rq-2.3.1/feeder.rb, line 88
      def daemon
#--{{{
        if @options['daemon']
          fork do
            Process::setsid
            fork do
              Dir::chdir(Util.realpath('~'))
              File::umask 0
              open('/dev/null','r+') do |f|
                STDIN.reopen f 
                STDOUT.reopen f 
                STDERR.reopen f 
              end
              @daemon = true
              yield
              exit EXIT_SUCCESS
            end
            exit!
          end
          exit!
        else
          @daemon = false 
          yield
          exit EXIT_SUCCESS
        end
#--}}}
      end