Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Dec 2016 11:12:24 +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-wVf9U93ULb@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-213928-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-213928-8@https.bugs.freebsd.org/bugzilla/>

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

--- Comment #1 from commit-hook@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@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

--=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-wVf9U93ULb>