Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Oct 2016 00:49:58 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 213928] Reapers don't receive SIGCHLD when inheriting zombies
Message-ID:  <bug-213928-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D213928

            Bug ID: 213928
           Summary: Reapers don't receive SIGCHLD when inheriting zombies
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: muh.muhten@gmail.com

If a process acquires reaper status with procctl (or if it's init), then wh=
en
one of its children exits, its children, including zombies, get reparented.

If a zombie gets reparented, the reaper receives no notification, so unless
it's looping around a wait* for unspecified children, the zombie won't get
reaped until the reaper exits.

This doesn't seem to be a problem for init, which does indeed loop around
waitpid(-1,0,0). However, it makes it hard for a correct program which acqu=
ires
reaper status to do anything interesting, as such a program should not bloc=
k on
anything but a wait* call unless it can guarantee that none of its descenda=
nts
will exit with zombies, as otherwise the system can accumulate zombies.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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