summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-04-06 14:04:43 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-04-06 14:04:43 +0000
commit3a70c86c98ba9ab8f329e92104a0824f6b1d1f21 (patch)
tree7671d0bb428a4bb338cd434816eef472eb4c2851 /lib
parent9b03d79f79ac820a1940aa78d30302a83c9db160 (diff)
* (utils) fix stderr redirection in safe_exec()
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/utils/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/utils.rb b/lib/rbot/core/utils/utils.rb
index cd2b9e1a..65148936 100644
--- a/lib/rbot/core/utils/utils.rb
+++ b/lib/rbot/core/utils/utils.rb
@@ -372,7 +372,7 @@ module ::Irc
return p.readlines.join("\n")
else
begin
- $stderr = $stdout
+ $stderr.reopen($stdout)
exec(command, *args)
rescue Exception => e
puts "exec of #{command} led to exception: #{e.inspect}"