Export to GitHub

psutil - issue #331

`cmdline` should not be cached


Posted on Sep 24, 2012 by Massive Camel

After version 0.5, property cmdline of Process is cacheable. Could you explain why so? There are a lot of situations, when process cmdline contains some valuable information, which should be processed/validated.

Thanks.

p.s. update psutil from 0.4.1 to 0.6.1, with cacheable cmdline, completely crashed our mail fetching monitoring system :)

Comment #1

Posted on Sep 24, 2012 by Happy Monkey

Cmdline is cached bacause is not supposed to change during the entire lifetime of the process (the same applies for process pid, ppid, name an exe). How exactly your code was affected by this change? The only difference in terms of compatibility should be that in case the process disappears NoSuchProcess is no longer raised.

Comment #2

Posted on Jan 22, 2013 by Happy Ox

runsvdir (of runit) alters its .cmdline to include recent stderr messages from all child processes.

Comment #3

Posted on Jan 22, 2013 by Happy Monkey

(No comment was entered for this change.)

Comment #4

Posted on Feb 27, 2013 by Happy Monkey

Fixed in r1570.

Comment #5

Posted on Mar 1, 2013 by Happy Monkey

Comment deleted

Comment #6

Posted on Mar 2, 2013 by Happy Monkey

Updated csets after the SVN -> Mercurial migration: r1570 == revision 9d2f1e41eee3

Comment #7

Posted on Apr 8, 2013 by Happy Monkey

(No comment was entered for this change.)

Comment #8

Posted on Apr 11, 2013 by Happy Monkey

(No comment was entered for this change.)

Comment #9

Posted on Apr 12, 2013 by Happy Monkey

(No comment was entered for this change.)

Status: Fixed

Labels:
Type-Defect Priority-Medium Milestone-0.7.0