| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | Fix a compile error in _psutil_linux.c if PSUTIL_HAVE_IOPRIO is false (#1695) | Anselm Kruis | 2020-02-15 | 1 | -1/+1 |
| | | | | The macro PSUTIL_HAVE_IOPRIO is always defined. | ||||
| * | #1672, #1682: SIZEOF_INT is not available on pypy3; assume that on systems ↵ | Giampaolo Rodola | 2020-02-09 | 1 | -1/+1 |
| | | | | | where pid_t size can't be determined at runtime pid_t is an int | ||||
| * | Properly handle PID type in C (#1672) | Giampaolo Rodola | 2020-01-29 | 1 | -11/+16 |
| | | |||||
| * | Use Py_CLEAR instead of Py_DECREF to also set the variable to NULL (#1616) | Riccardo Schirone | 2019-11-13 | 1 | -7/+7 |
| | | | | | | | | | | | | | | | These files contain loops that convert system data into python objects and during the process they create objects and dereference their refcounts after they have been added to the resulting list. However, in case of errors during the creation of those python objects, the refcount to previously allocated objects is dropped again with Py_XDECREF, which should be a no-op in case the paramater is NULL. Even so, in most of these loops the variables pointing to the objects are never set to NULL, even after Py_DECREF is called at the end of the loop iteration. This means, after the first iteration, if an error occurs those python objects will get their refcount dropped two times, resulting in a possible double-free. | ||||
| * | Refactor C modules init (#1603) | Giampaolo Rodola | 2019-10-21 | 1 | -76/+52 |
| | | |||||
| * | fix #1126: cpu_affinity() segfaults on CentOS 5 | Giampaolo Rodola | 2019-10-10 | 1 | -48/+10 |
| | | | | | | | Remove cpu_affinity() support for CentOS 5 (it's 8 years old anyway); remove the dual implementation. Recent manylinux versions should use CentOS 6. | ||||
| * | expose WINVER constants in the cext module | Giampaolo Rodola | 2019-02-25 | 1 | -2/+2 |
| | | |||||
| * | #1428 in case of error, show the C syscall which caused it | Giampaolo Rodola | 2019-02-24 | 1 | -3/+4 |
| | | |||||
| * | #1394 / windows / process exe(): convert errno 0 into ERROR_ACCESS_DENIED; ↵ | Giampaolo Rodola | 2019-01-25 | 1 | -1/+4 |
| | | | | | errno 0 occurs when the Python process runs in 'Virtual Secure Mode' | ||||
| * | fix #1307: [Linux] disk_partitions() does not honour PROCFS_PATH | Giampaolo Rodola | 2018-10-19 | 1 | -3/+6 |
| | | |||||
| * | define a setup() function which is called on import by all C modules | Giampaolo Rodola | 2017-11-12 | 1 | -0/+2 |
| | | |||||
| * | refactor PSUTIL_TESTING C APIs | Giampaolo Rodola | 2017-11-12 | 1 | -3/+1 |
| | | |||||
| * | fix #1169: (Linux) users() hostname returns username instead | Giampaolo Rodola | 2017-11-11 | 1 | -1/+1 |
| | | |||||
| * | get rid of PSUTIL_TESTING env var: it must be necessarily set from cmdline, ↵psutil-test-flag | Giampaolo Rodola | 2017-11-11 | 1 | -2/+4 |
| | | | | | hence 'python -m psutil.tests' won't work out of the box | ||||
| * | remove useless line | Giampaolo Rodola | 2017-05-18 | 1 | -2/+0 |
| | | |||||
| * | PSUTIL_TESTING env var (#1083) | Giampaolo Rodola | 2017-05-18 | 1 | -1/+5 |
| | | | | | | | | | | | | | | | * Introduce PSUTIL_TESTING env var ...so that we can make stricter assertions in C and py code during tests only. * define a C function in _common.c which returns whether the var is set * set PSUTIL_TESTING from the Makefile * cache psutil_testing() result * winmake: set PSUTIL_TESTING env var for tests | ||||
| * | #1040 users() / linux: fix unicode | Giampaolo Rodola | 2017-05-02 | 1 | -5/+22 |
| | | |||||
| * | #1040 disk_partitions() / linux: fix unicode | Giampaolo Rodola | 2017-05-02 | 1 | -4/+16 |
| | | |||||
| * | move psutil_pid_exists() and psutil_raise_for_pid() from _psutil_common.c to ↵ | Giampaolo Rodola | 2017-04-30 | 1 | -0/+2 |
| | | | | | _psutil_posix.c | ||||
| * | linux / c: small refactoring | Giampaolo Rodola | 2017-04-27 | 1 | -2/+1 |
| | | |||||
| * | #1022: fix users() on Linux; update doc; bump up version | Giampaolo Rodola | 2017-04-25 | 1 | -1/+1 |
| | | |||||
| * | in psutil_users() move pid to the back | Alexander Hasselhuhn | 2017-04-25 | 1 | -2/+2 |
| | | |||||
| * | make users() include pid into suser tuple | Alexander Hasselhuhn | 2017-04-25 | 1 | -1/+2 |
| | | |||||
| * | Fix build with musl libc | Baruch Siach | 2017-02-16 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | Suppress inclusion of linux/sysinfo.h to fix redefinition of struct sysinfo that musl libc defines in sys/sysinfo.h, which least to the following build failure (paths abbreviated): In file included from .../usr/include/linux/kernel.h:4:0, from .../usr/include/linux/ethtool.h:16, from psutil/_psutil_linux.c:35: .../usr/include/linux/sysinfo.h:7:8: error: redefinition of ‘struct sysinfo’ struct sysinfo { ^ In file included from psutil/_psutil_linux.c:21:0: .../usr/include/sys/sysinfo.h:10:8: note: originally defined here struct sysinfo { ^ Fixes #872 | ||||
| * | refactor memleak script: get rid of no longer used logic to deal with ↵ | Giampaolo Rodola | 2016-10-28 | 1 | -1/+1 |
| | | | | | Process properties | ||||
| * | linux: separate IFFLAGS function | Giampaolo Rodola | 2016-10-25 | 1 | -18/+5 |
| | | |||||
| * | share C function to retrieve MTU across all UNIXes | Giampaolo Rodola | 2016-10-24 | 1 | -9/+2 |
| | | |||||
| * | change wording when raising RuntimeError from C (add 'syscall' term) | Giampaolo Rodola | 2016-10-05 | 1 | -1/+1 |
| | | |||||
| * | issue #892: [Linux] Process.cpu_affinity([-1]) raise SystemError with no ↵ | Giampaolo Rodola | 2016-09-22 | 1 | -1/+5 |
| | | | | | error set; now ValueError is raised. | ||||
| * | Merge pull request #825 from hardikar/master | Giampaolo Rodola | 2016-09-22 | 1 | -4/+4 |
| |\ | | | | | Fix possible double close and use of unopened socket | ||||
| | * | Address PR comments | Shreedhar Hardikar | 2016-06-14 | 1 | -3/+2 |
| | | | |||||
| | * | Fix possible double close and use of unopened socket | Shreedhar Hardikar | 2016-05-24 | 1 | -4/+5 |
| | | | |||||
| * | | remove useless .h files | Giampaolo Rodola | 2016-07-03 | 1 | -2/+0 |
| |/ | |||||
| * | fix #797: [Linux] net_if_stats() may raise OSError for certain NIC cards. | Giampaolo Rodola | 2016-03-30 | 1 | -2/+5 |
| | | |||||
| * | fix #776 / linux / cpu_affinity: set right C type for Py_ArgParse | Giampaolo Rodola | 2016-02-24 | 1 | -2/+2 |
| | | |||||
| * | #685 / linux / mem funcs: return original C types and use the multiplier in ↵ | Giampaolo Rodola | 2016-02-15 | 1 | -7/+9 |
| | | | | | python in order to avoid C typing issues | ||||
| * | Fixed call to Py_DECREF on possible Null object | Tim Konick | 2016-02-02 | 1 | -1/+1 |
| | | |||||
| * | move DUPLEX_UNKOWN fix outside of #if PSUTIL_HAVE_IOPRIO | Arnon Yaari | 2015-09-04 | 1 | -5/+6 |
| | | | | | this fixes the build on Centos 4.8 | ||||
| * | C: var names -> add py_ prefix | Giampaolo Rodola | 2015-09-03 | 1 | -35/+35 |
| | | |||||
| * | fix python 3 compilation error | Giampaolo Rodola | 2015-08-30 | 1 | -2/+1 |
| | | |||||
| * | #659: [Linux] compilation error on Suse 10. (patch by maozguttman) | Giampaolo Rodola | 2015-08-30 | 1 | -1/+9 |
| | | |||||
| * | fix #513: [Linux] fixed integer overflow for RLIM_INFINITY. | Giampaolo Rodola | 2015-08-07 | 1 | -1/+14 |
| | | |||||
| * | C styling | Giampaolo Rodola | 2015-08-06 | 1 | -8/+5 |
| | | |||||
| * | C styling | Giampaolo Rodola | 2015-08-06 | 1 | -18/+9 |
| | | |||||
| * | Fix #664 by compiling on musl libc | Bart van Kleef | 2015-08-04 | 1 | -1/+1 |
| | | | | See http://stackoverflow.com/questions/6381526/what-is-the-significance-of-caddr-t-and-when-is-it-used and https://github.com/metachris/RPIO/issues/40 for more details. | ||||
| * | #659: try to fix compilation err on suse 10 | Giampaolo Rodola | 2015-07-31 | 1 | -0/+1 |
| | | |||||
| * | fix compilation warning about possible misuse of XDECREF | Arnon Yaari | 2015-03-15 | 1 | -2/+2 |
| | | |||||
| * | fix #607: DUPLEX_UNKNOWN is not defined on old RedHat versions | Giampaolo Rodola | 2015-03-14 | 1 | -0/+6 |
| | | |||||
| * | C styling: if unification | Giampaolo Rodola | 2015-03-01 | 1 | -33/+16 |
| | | |||||
| * | #250: use int instead of PyObject | Giampaolo Rodola | 2015-02-12 | 1 | -8/+3 |
| | | |||||
