[Python-checkins] r61688 - python/trunk/Lib/test/test_signal.py

jeffrey.yasskin python-checkins at python.org
Fri Mar 21 06:51:38 CET 2008


Author: jeffrey.yasskin
Date: Fri Mar 21 06:51:37 2008
New Revision: 61688
Modified:
 python/trunk/Lib/test/test_signal.py
Log:
Try to fix test_signal breakages on Linux due to r61687. It appears that at
least two of the linux build bots aren't leaving zombie processes around for
os.waitpid to wait for, causing ECHILD errors. This would be a symptom of a bug
somewhere, but probably not in signal itself.
Modified: python/trunk/Lib/test/test_signal.py
==============================================================================
--- python/trunk/Lib/test/test_signal.py	(original)
+++ python/trunk/Lib/test/test_signal.py	Fri Mar 21 06:51:37 2008
@@ -44,9 +44,11 @@
 """Wait for child_pid to finish, ignoring EINTR."""
 while True:
 try:
- pid, status = os.waitpid(child_pid, 0)
- return status
+ os.waitpid(child_pid, 0)
+ return
 except OSError as e:
+ if e.errno == errno.ECHILD:
+ return
 if e.errno != errno.EINTR:
 raise
 


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /