diff options
Diffstat (limited to 'psutil/_psutil_bsd.c')
-rw-r--r-- | psutil/_psutil_bsd.c | 5 |
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)) { |