Merged revisions 302634 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 19 Jan 2011 20:33:30 +0000 (20:33 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 19 Jan 2011 20:33:30 +0000 (20:33 +0000)
commitf8bbf4bfa26d7a5cd64875d38968c568a5f7e5c2
treedf6ed35727904720e3d5ae002b58988bbd25599c
parentdcc2a9ea5b2e5399400ed6577d4bfb2c680960bc
Merged revisions 302634 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.8

................
  r302634 | tilghman | 2011-01-19 14:24:57 -0600 (Wed, 19 Jan 2011) | 22 lines

  Merged revisions 302599 via svnmerge from
  https://origsvn.digium.com/svn/asterisk/branches/1.6.2

  ........
    r302599 | tilghman | 2011-01-19 14:13:24 -0600 (Wed, 19 Jan 2011) | 15 lines

    Kill zombies.

    When we ast_safe_fork() with a non-zero argument, we're expected to reap our
    own zombies.  On a zero argument, however, the zombies are only reaped when
    there aren't any non-zero forked children alive.  At other times, we
    accumulate zombies.  This code is forward ported from res_agi in 1.4, so that
    forked children are always reaped, thus preventing an accumulation of zombie
    processes.

    (closes issue #18515)
    Reported by: ernied
    Patches:
          20101221__issue18515.diff.txt uploaded by tilghman (license 14)
    Tested by: ernied
  ........
................

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@302644 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/app.c