From owner-cvs-all@FreeBSD.ORG Sat Feb 11 10:05:03 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5333716A420; Sat, 11 Feb 2006 10:05:03 +0000 (GMT) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C74343D46; Sat, 11 Feb 2006 10:05:03 +0000 (GMT) (envelope-from kris@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k1BA5289014775; Sat, 11 Feb 2006 10:05:02 GMT (envelope-from kris@repoman.freebsd.org) Received: (from kris@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k1BA5224014766; Sat, 11 Feb 2006 10:05:02 GMT (envelope-from kris) Message-Id: <200602111005.k1BA5224014766@repoman.freebsd.org> From: Kris Kennaway Date: Sat, 11 Feb 2006 10:05:01 +0000 (UTC) To: ports-committers@FreeBSD.org, cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: ports/Tools/portbuild/scripts clean-chroot X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 10:05:03 -0000 kris 2006-02-11 10:05:01 UTC FreeBSD ports repository Modified files: Tools/portbuild/scripts clean-chroot Log: * In kill_procs(), pass in the directory and mountpoint as separate arguments (cosmetic) * Detect if a chroot was used to run a jailed build, and first attempt to gracefully shut it down by killing everything within using pgrep(1) This has a much higher chance of succeeding that relying on fstat to identify processes that might interfere with our attempts to clean up mountpoints, which is fragile (libkvm-dependent), and inherently unreliable at best. Revision Changes Path 1.10 +8 -2 ports/Tools/portbuild/scripts/clean-chroot