Skip to content

Commit

Permalink
what a stupid bug! (giampaolo#1190)
Browse files Browse the repository at this point in the history
  • Loading branch information
giampaolo authored Dec 7, 2017
1 parent a406eb0 commit 090ae20
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
9 changes: 9 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
*Bug tracker at https://github.com/giampaolo/psutil/issues*

5.4.3
=====

*XXXX-XX-XX*

**Bug fixes**

- 1193_: pids() may return False on OSX.

5.4.2
=====

Expand Down
2 changes: 1 addition & 1 deletion psutil/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
]
__all__.extend(_psplatform.__extra__all__)
__author__ = "Giampaolo Rodola'"
__version__ = "5.4.2"
__version__ = "5.4.3"
version_info = tuple([int(num) for num in __version__.split('.')])
AF_LINK = _psplatform.AF_LINK
POWER_TIME_UNLIMITED = _common.POWER_TIME_UNLIMITED
Expand Down
5 changes: 2 additions & 3 deletions psutil/_psosx.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,11 @@ def pids():
# https://travis-ci.org/giampaolo/psutil/jobs/309619941
try:
Process(0).create_time()
ls.append(0)
except NoSuchProcess:
return False
pass
except AccessDenied:
ls.append(0)
else:
ls.append(0)
return ls


Expand Down

0 comments on commit 090ae20

Please sign in to comment.