Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exe and getcwd function for PID 0 on Linux return misleading data #151

Closed
giampaolo opened this issue May 23, 2014 · 4 comments
Closed

exe and getcwd function for PID 0 on Linux return misleading data #151

giampaolo opened this issue May 23, 2014 · 4 comments

Comments

@giampaolo
Copy link
Owner

From g.rodola on February 22, 2011 06:31:46

What steps will reproduce the problem?  
>>> p = psutil.Process(0)
>>> p.exe
""
>>> p.getcwd()
""

This is inconsistent in case we do:

>>> os.path.exists(p.exe)
False
>>> os.path.exists(p.getcwd())
False

In this case an AccessDenied exception would be more appropriate.

Original issue: http://code.google.com/p/psutil/issues/detail?id=151

@giampaolo giampaolo self-assigned this May 23, 2014
@giampaolo
Copy link
Owner Author

From g.rodola on February 21, 2011 21:34:50

Fixed in r933 .

Status: FixedInSVN

@giampaolo
Copy link
Owner Author

From g.rodola on February 21, 2011 21:52:33

Same problem occurred on Windows. Fixed in r934 .

Labels: OpSys-Windows

@giampaolo
Copy link
Owner Author

From g.rodola on March 20, 2011 14:55:37

Status: Fixed

@giampaolo
Copy link
Owner Author

From g.rodola on March 02, 2013 03:59:19

Updated csets after the SVN -> Mercurial migration: r933 == revision 
afd32ffdd5df r934 == revision 5644e30c9fa9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant