You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split on first null character and return 1st item from list. It fixes issues such as
>>> os.readlink("/proc/%s/exe" % 4672)
'/usr/sbin/hald\x00r\x00\x9f$+\x00\x00\xd0\x8f\xca\x9f$+\x00\x00p (deleted)'
>>> os.readlink("/proc/%s/exe" % 4672).split('\x00')[0]
'/usr/sbin/hald'
>>>
From [email protected] on January 23, 2014 13:20:17
Attachment: _pslinux.py.patch
Original issue: http://code.google.com/p/psutil/issues/detail?id=466
The text was updated successfully, but these errors were encountered: