Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Aug 2015 09:06:15 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r287199 - in stable/10: lib/libc/sys sys/kern
Message-ID:  <201508270906.t7R96FWr050501@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kib
Date: Thu Aug 27 09:06:14 2015
New Revision: 287199
URL: https://svnweb.freebsd.org/changeset/base/287199

Log:
  MFC r286975:
  Remove the wrong asserts.

Modified:
  stable/10/lib/libc/sys/procctl.2
  stable/10/sys/kern/kern_procctl.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/lib/libc/sys/procctl.2
==============================================================================
--- stable/10/lib/libc/sys/procctl.2	Thu Aug 27 08:58:03 2015	(r287198)
+++ stable/10/lib/libc/sys/procctl.2	Thu Aug 27 09:06:14 2015	(r287199)
@@ -29,7 +29,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd December 29, 2014
+.Dd August 21, 2015
 .Dt PROCCTL 2
 .Os
 .Sh NAME
@@ -148,7 +148,11 @@ The specified process is the root of the
 .El
 The
 .Fa rs_children
-field returns the number of children of the reaper.
+field returns the number of children of the reaper among the descendands.
+It is possible to have a child which reaper is not the specified process,
+since the reaper for the existing children is not reset on the
+.Dv PROC_REAP_ACQUIRE
+operation.
 The
 .Fa rs_descendants
 field returns the total number of descendants of the reaper(s),

Modified: stable/10/sys/kern/kern_procctl.c
==============================================================================
--- stable/10/sys/kern/kern_procctl.c	Thu Aug 27 08:58:03 2015	(r287198)
+++ stable/10/sys/kern/kern_procctl.c	Thu Aug 27 09:06:14 2015	(r287199)
@@ -187,8 +187,6 @@ reap_status(struct thread *td, struct pr
 		}
 	} else {
 		rs->rs_pid = -1;
-		KASSERT(LIST_EMPTY(&reap->p_reaplist), ("reap children list"));
-		KASSERT(LIST_EMPTY(&reap->p_children), ("children list"));
 	}
 	return (0);
 }



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