From owner-cvs-src-old@FreeBSD.ORG Sun May 22 22:28:17 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BCA85106566B for ; Sun, 22 May 2011 22:28:17 +0000 (UTC) (envelope-from jilles@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id AB8968FC14 for ; Sun, 22 May 2011 22:28:17 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4MMSHcc080373 for ; Sun, 22 May 2011 22:28:17 GMT (envelope-from jilles@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4MMSHIY080372 for cvs-src-old@freebsd.org; Sun, 22 May 2011 22:28:17 GMT (envelope-from jilles@repoman.freebsd.org) Message-Id: <201105222228.p4MMSHIY080372@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jilles@repoman.freebsd.org using -f From: Jilles Tjoelker Date: Sun, 22 May 2011 22:28:07 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/bin/sh jobs.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 22 May 2011 22:28:17 -0000 jilles 2011-05-22 22:28:07 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) bin/sh jobs.c Log: SVN rev 222208 on 2011-05-22 22:28:07Z by jilles MFC r208489,r216208: sh: Reap any zombies before forking for a background command. This prevents accumulating huge amounts of zombies if a script executes many background commands but no external commands or subshells. Note that zombies will not be reaped during long calculations (within the shell process) or read builtins, but those actions do not create more zombies. The terminated background commands will also still be remembered by the shell. r216208 fixes a bug in r208489 that could cause a multi-command pipeline to be marked as done before all processes had been created. PR: bin/55346 Revision Changes Path 1.72.10.8 +14 -2 src/bin/sh/jobs.c