bot: reorder fork sequence origin/logger-fixes
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 4 Jun 2021 14:46:59 +0000 (16:46 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Fri, 4 Jun 2021 14:46:59 +0000 (16:46 +0200)
commitb59780dee64bde8c09315317700a0365906b8634
tree4b4488d22c2f4b497e5cf5255fbf304cda466337
parent8aa6360d9a234d36922d456f10fd60c797f52c3f
bot: reorder fork sequence

We do the actual fork as the last step, after redirecting the
standard I/O streams. This also ensures that no log messages
are shown on console _after_ forking.
lib/rbot/ircbot.rb