[Bug 213928] Reapers don't receive SIGCHLD when inheriting zombies

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon Dec 12 11:12:24 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213928

--- Comment #1 from commit-hook at freebsd.org ---
A commit references this bug:

Author: kib
Date: Mon Dec 12 11:11:50 UTC 2016
New revision: 309886
URL: https://svnweb.freebsd.org/changeset/base/309886

Log:
  When a zombie gets reparented due to the parent exit, send SIGCHLD to
  the reaper.

  The traditional reaper init(8) is aware of zombies silently reparented
  to it after the parents exit, it loops around waitpid(2) to collect
  them.  For other reapers, the silent reparenting is surprising and
  collecting zombies requires a thread blocking in waitpid(2) just for
  that purpose.  It seems that sending second SIGCHLD is a better
  workaround than forcing all reapers to obey the setup.

  Reported by:   Michael Zuo <muh.muhten at gmail.com>, jilles
  PR:   213928
  Reviewed by:  jilles (previous version)
  Sponsored by: The FreeBSD Foundation
  MFC after:    2 weeks

Changes:
  head/sys/kern/kern_exit.c

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


More information about the freebsd-bugs mailing list