[llvm-commits] CVS: llvm/test/QMTest/llvm.py

John Criswell criswell at cs.uiuc.edu
Fri Oct 10 16:00:03 PDT 2003


Changes in directory llvm/test/QMTest:

llvm.py updated: 1.17 -> 1.18

---
Log message:

Close pipes to child processes when done.  This keeps us from running out
of file descriptors on Solaris.


---
Diffs of the changes:  (+12 -0)

Index: llvm/test/QMTest/llvm.py
diff -u llvm/test/QMTest/llvm.py:1.17 llvm/test/QMTest/llvm.py:1.18
--- llvm/test/QMTest/llvm.py:1.17	Fri Oct 10 15:25:27 2003
+++ llvm/test/QMTest/llvm.py	Fri Oct 10 15:59:33 2003
@@ -73,6 +73,18 @@
 	# Wait for the child process to exit.
 	#
 	(pid, status) = os.waitpid (child, 0)
+
+	#
+	# Close our pipes to the child.
+	#
+	os.close (child_out)
+	if (outfile == ''):
+		os.close (parent_in)
+
+	#
+	# Return true if the program crashed or exited with a non-zero
+	# exit status.
+	#
 	return (not ((os.WIFEXITED(status)) and ((os.WEXITSTATUS(status)) == 0)))
 
 ##############################################################################





More information about the llvm-commits mailing list