projects
/
ruby-vorbistagger.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5aa77e9
)
Fixed reopening of stdout and stderr.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Mon, 14 Aug 2006 16:12:35 +0000
(18:12 +0200)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Wed, 23 Aug 2006 17:33:45 +0000
(19:33 +0200)
They are now reopened to /dev/null instead of an temporary file that can
never be removed.
rake/configuretask.rb
patch
|
blob
|
history
diff --git
a/rake/configuretask.rb
b/rake/configuretask.rb
index 2078da41a1eada92eb991b0237d91293732750c4..1b24f7260fce6ab671088ada7c521d4efe0f6036 100644
(file)
--- a/
rake/configuretask.rb
+++ b/
rake/configuretask.rb
@@
-23,7
+23,6
@@
require "rake/tasklib"
require "rake/clean"
require "yaml"
-require "tempfile"
require "fileutils"
module Rake
@@
-140,9
+139,8
@@
module Rake
protected
def can_exec_binary?(bin)
fork do
- tf = Tempfile.open("configuretask")
- STDOUT.reopen(tf)
- STDERR.reopen(tf)
+ STDOUT.reopen("/dev/null")
+ STDERR.reopen("/dev/null")
begin
exec(bin)