autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] autotest: Avoid accumulating zombie children


From: YAMAMOTO Takashi
Subject: [PATCH] autotest: Avoid accumulating zombie children
Date: Tue, 18 Jul 2017 21:48:17 +0900

The issue has been seen with Open vSwitch testsuite.

Signed-off-by: YAMAMOTO Takashi <address@hidden>
---
 lib/autotest/general.m4 | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/autotest/general.m4 b/lib/autotest/general.m4
index b50a696..cdf453a 100644
--- a/lib/autotest/general.m4
+++ b/lib/autotest/general.m4
@@ -1425,6 +1425,10 @@ dnl          kill -13 $$
       echo >&AT_JOB_FIFO_OUT_FD
     ) &
     $at_job_control_off
+dnl With NetBSD /bin/sh, this loop can keep a zombie process for each
+dnl iterations. It can be a problem if at_jobs is large enough to hit
+dnl the ulimit. The following jobs command drains zombies as a side effect.
+    jobs > /dev/null || :  # drain the list of jobs
     if $at_first; then
       at_first=false
       exec AT_JOB_FIFO_IN_FD<"$at_job_fifo" AT_JOB_FIFO_OUT_FD>"$at_job_fifo"
-- 
2.5.4 (Apple Git-61)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]