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

LLVM llvm at cs.uiuc.edu
Sat Jun 19 14:46:00 PDT 2004


Changes in directory llvm/test/QMTest:

llvm.py updated: 1.27 -> 1.28

---
Log message:

Added the WNOHANG flag for waitpid in ExecProgram to (hopefully) ensure 
that rapidly exiting child processes do not cause the parent to hang.


---
Diffs of the changes:  (+1 -1)

Index: llvm/test/QMTest/llvm.py
diff -u llvm/test/QMTest/llvm.py:1.27 llvm/test/QMTest/llvm.py:1.28
--- llvm/test/QMTest/llvm.py:1.27	Thu May 27 15:30:29 2004
+++ llvm/test/QMTest/llvm.py	Sat Jun 19 14:38:38 2004
@@ -81,7 +81,7 @@
 	#
 	# Wait for the child process to exit.
 	#
-	(pid, status) = os.waitpid (child, 0)
+	(pid, status) = os.waitpid (child, os.WNOHANG )
 
 	#
 	# Close our pipes to the child.





More information about the llvm-commits mailing list