K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-02-13T19:13:46.000000Z K 7 svn:log V 676 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. END