[Gridflow-cvs] [svn] commit: r6698 - /trunk/configure

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Feb 28 20:52:46 EST 2011


Author: matju
Date: Mon Feb 28 20:52:46 2011
New Revision: 6698

Log:
stop using IO.pipe (the system-call that creates an anonymous pipe)

Modified:
    trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure (original)
+++ trunk/configure Mon Feb 28 20:52:46 2011
@@ -69,22 +69,17 @@
 def launch(*command)
 	LOG.puts command.join(" "), ""
 	LOG.flush
-	r,w = IO.pipe
 	child = fork
 	if not child then
-		STDOUT.reopen w
-		STDERR.reopen w
+		STDOUT.reopen LOG
+		STDERR.reopen LOG
 		exec *command
 		#!@#$ what happens with exception upon exec ?
 	end
-	w.close
-	log = ""
-	log << r.readlines.join << "\n"
 	ret = join_pid(child)
 	ret = ret.to_i   if RUBY_VERSION >= "1.9"
 	ret = ret.to_int if RUBY_VERSION > "1.7"
-	log << "error \##{ret}\n" if ret>0
-	LOG.puts log
+	LOG.puts "process returned status \##{ret}\n" if ret>0
 	LOG.flush
 	return ret<=0
 end



More information about the Gridflow-cvs mailing list