Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 May 2011 22:28:07 +0000 (UTC)
From:      Jilles Tjoelker <jilles@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/bin/sh jobs.c
Message-ID:  <201105222228.p4MMSHIY080372@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105222228.p4MMSHIY080372>