psutil v4.4.0 Release Notes

  • 2016-10-23

    โœจ Enhancements

    • ๐Ÿ 874_, [Windows]: make net_if_addrs()_ also return the netmask.
    • ๐Ÿง 887_, [Linux]: virtual_memory()_ available and used values are more precise and match free cmdline utility. available also takes into account LCX containers preventing available to overflow total.
    • 891_: procinfo.py_ script has been updated and provides a lot more info.

    ๐Ÿ› Bug fixes

    • ๐ŸŽ 514_, [macOS], [critical]: Process.memory_maps()_ can segfault.
    • ๐ŸŽ 783_, [macOS]: Process.status()_ may erroneously return "running" for zombie processes.
    • ๐Ÿ 798_, [Windows]: Process.open_files()_ returns and empty list on Windows 10.
    • ๐Ÿง 825_, [Linux]: Process.cpu_affinity()_: fix possible double close and use of unopened socket.
    • ๐Ÿ 880_, [Windows]: fix race condition inside net_connections()_.
    • 885_: ValueError is raised if a negative integer is passed to cpu_percent()_ functions.
    • ๐Ÿง 892_, [Linux], [critical]: Process.cpu_affinity()_ with [-1] as arg raises SystemError with no error set; now ValueError is raised.
    • 906_, [BSD]: disk_partitions()_ with all=False returned an empty list. Now the argument is ignored and all partitions are always returned.
    • 907_, [FreeBSD]: Process.exe()_ may fail with OSError(ENOENT).
    • ๐ŸŽ 908_, [macOS], [BSD]: different process methods could errounesuly mask the real error for high-privileged PIDs and raise NoSuchProcess_ and AccessDenied_ instead of OSError and RuntimeError.
    • ๐ŸŽ 909_, [macOS]: Process.open_files()_ and Process.connections()_ methods may raise OSError with no exception set if process is gone.
    • ๐ŸŽ 916_, [macOS]: fix many compilation warnings.