From owner-cvs-src@FreeBSD.ORG Sun Feb 13 19:13:47 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D75316A4CE; Sun, 13 Feb 2005 19:13:47 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 54E8A43D46; Sun, 13 Feb 2005 19:13:47 +0000 (GMT) (envelope-from csjp@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 j1DJDlDr022502; Sun, 13 Feb 2005 19:13:47 GMT (envelope-from csjp@repoman.freebsd.org) Received: (from csjp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j1DJDlNB022501; Sun, 13 Feb 2005 19:13:47 GMT (envelope-from csjp) Message-Id: <200502131913.j1DJDlNB022501@repoman.freebsd.org> From: "Christian S.J. Peron" Date: Sun, 13 Feb 2005 19:13:46 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_5 Subject: cvs commit: src/bin/ps ps.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Feb 2005 19:13:47 -0000 csjp 2005-02-13 19:13:46 UTC FreeBSD src repository Modified files: (Branch: RELENG_5) bin/ps ps.c Log: MFC ps.c revision 1.108 date: 2004/11/14 19:30:02; author: csjp; state: Exp; lines: +25 -0 Currently if the user specifies -e and procfs is not mounted on /proc, printing of the process environment will fail silently. -define a function which will check to see if procfs is mounted on /proc -Implement this test if the user specified -e -If procfs is not mounted on /proc and -e was specified, print a warning. informing the user that procfs(5) is required. MFC ps.c revision 1.108 date: 2004/11/19 16:11:54; author: csjp; state: Exp; lines: +6 -9 Use statfs instead of getmntinfo(). This will make the procfs checks play nicer in prisons. It also simplifies things. Revision Changes Path 1.106.2.1 +22 -0 src/bin/ps/ps.c