summaryrefslogtreecommitdiff
path: root/psutil/_psutil_bsd.c
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-10-24 21:20:58 +0300
committerGiampaolo Rodola <g.rodola@gmail.com>2020-10-24 21:20:58 +0300
commit1e1ca969454f6449efac3001add1df6a383bebfb (patch)
treebf345c9f1839ecc3bd9cdf15c859ffe8dfb48d6f /psutil/_psutil_bsd.c
parent06c265bafc204be4b8cbc8bbf10213397750e7a0 (diff)
downloadpsutil-disk-part-ext.tar.gz
implement posix max file/path lendisk-part-ext
Diffstat (limited to 'psutil/_psutil_bsd.c')
-rw-r--r--psutil/_psutil_bsd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/psutil/_psutil_bsd.c b/psutil/_psutil_bsd.c
index 6933260a..c1b811c6 100644
--- a/psutil/_psutil_bsd.c
+++ b/psutil/_psutil_bsd.c
@@ -443,17 +443,12 @@ psutil_proc_environ(PyObject *self, PyObject *args) {
// On *BSD kernels there are a few kernel-only system processes without an
// environment (See e.g. "procstat -e 0 | 1 | 2 ..." on FreeBSD.)
- //
// Some system process have no stats attached at all
// (they are marked with P_SYSTEM.)
- //
// On FreeBSD, it's possible that the process is swapped or paged out,
// then there no access to the environ stored in the process' user area.
- //
// On NetBSD, we cannot call kvm_getenvv2() for a zombie process.
- //
// To make unittest suite happy, return an empty environment.
- //
#if defined(PSUTIL_FREEBSD)
#if (defined(__FreeBSD_version) && __FreeBSD_version >= 700000)
if (!((p)->ki_flag & P_INMEM) || ((p)->ki_flag & P_SYSTEM)) {