Closed GoogleCodeExporter closed 8 years ago
Branch at:
https://psutil.googlecode.com/svn/branches/cache-refactoring
To use it from the local copy of the trunk just do:
svn switch https://psutil.googlecode.com/svn/branches/cache-refactoring
Original comment by g.rodola
on 29 Oct 2010 at 11:56
Linux code committed in r752.
Original comment by g.rodola
on 30 Oct 2010 at 12:15
FreeBSD code committed in r753.
Original comment by g.rodola
on 30 Oct 2010 at 1:18
Windows code committed in r755.
Still a couple of failures for zombie ppid and name properties but they're
gonna get better soon.
Re-assigning to Jay for completion on OSX.
Original comment by g.rodola
on 30 Oct 2010 at 3:02
OS X committed in r757
Everything is passing except for test_zombie_process() which is not raising NSP
on exe attribute. It seems like it's not raising NSP when we read the cmdline
to figure out the exe, so it falls through and returns "" for exe, instead of
raising NSP from the exe attribute.
Original comment by jlo...@gmail.com
on 30 Oct 2010 at 3:39
Original comment by jlo...@gmail.com
on 30 Oct 2010 at 3:39
I think you can do as follows, as I did on Windows:
def get_process_exe(self):
# no such thing as "exe" on OSX; it will maybe be determined
# later from cmdline[0]
if not pid_exists(self.pid):
raise NoSuchProcess(self.pid, self._process_name)
return ""
Original comment by g.rodola
on 30 Oct 2010 at 5:12
Merged branch changes back into trunk as r760 and deleted branch in r761.
Original comment by g.rodola
on 30 Oct 2010 at 5:45
Ok, this works... I also had to do the same for cmdline as well.. it appears
the cmdline function does not raise NoSuchProcess when the process has gone
away either.
This works for now, but for the long term I would like to refactor the OS X
commandline code (and hopefully fix Issue #83 at the same time. I will open a
new issue to remind myself to refactor the code at a future date.
Original comment by jlo...@gmail.com
on 30 Oct 2010 at 5:51
Fixed OS X in r762
Original comment by jlo...@gmail.com
on 30 Oct 2010 at 5:53
Original comment by jlo...@gmail.com
on 30 Oct 2010 at 5:54
Original comment by g.rodola
on 13 Nov 2010 at 3:14
Original comment by g.rodola
on 9 Jun 2011 at 10:33
[deleted comment]
Updated csets after the SVN -> Mercurial migration:
r752 == revision ???
r753 == revision ???
r755 == revision ???
r757 == revision ???
r760 == revision 9eb8a9833278
r762 == revision 22a716a1d49f
Original comment by g.rodola
on 2 Mar 2013 at 11:56
Original issue reported on code.google.com by
g.rodola
on 29 Oct 2010 at 11:48