summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/ircbot.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 88a85483..8233f3c5 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -190,16 +190,12 @@ class IrcBot
exit if fork
rescue NotImplementedError
puts "Could not background, fork not supported"
- $daemonize = false
rescue => e
puts "Could not background. #{e.inspect}"
- $daemonize = false
end
- end
-
- if $daemonize
Dir.chdir botclass
# File.umask 0000 # Ensure sensible umask. Adjust as needed.
+ puts "Redirecting standard input/output/error"
begin
STDIN.reopen "/dev/null"
rescue Errno::ENOENT