From 58711c2db81d437fdcf5b8aedf68bfd00fc089fd Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Thu, 28 May 2015 09:28:46 +0200 Subject: update doc --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/index.rst') diff --git a/docs/index.rst b/docs/index.rst index efbab674..000ac20d 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -568,7 +568,7 @@ Functions import psutil def on_terminate(proc): - print("process {} terminated".format(proc)) + print("process {} terminated with exit code {}".format(proc, proc.returncode)) procs = [...] # a list of Process instances for p in procs: -- cgit v1.2.1 From d3239a650eaa2595fdd8c2eca9cda9a599b17a5b Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Wed, 3 Jun 2015 11:48:31 +0200 Subject: fix #628: Process.name() on Linux truncates spaces and ')' --- docs/index.rst | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'docs/index.rst') diff --git a/docs/index.rst b/docs/index.rst index 000ac20d..9d527ebb 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -769,6 +769,13 @@ Process class 10 >>> + Starting from `Python 3.3 `__ this + functionality is also available as + `os.getpriority() `__ + and + `os.setpriority() `__ + (UNIX only). + On Windows this is available as well by using `GetPriorityClass `__ and `SetPriorityClass `__ @@ -779,12 +786,6 @@ Process class >>> p.nice(psutil.HIGH_PRIORITY_CLASS) - Starting from `Python 3.3 `__ this - same functionality is available as - `os.getpriority() `__ - and - `os.setpriority() `__. - .. method:: ionice(ioclass=None, value=None) Get or set @@ -1225,7 +1226,7 @@ Popen class :meth:`send_signal() `, :meth:`terminate() ` and :meth:`kill() ` - so that you don't accidentally terminate another process, fixing + so that you can't accidentally terminate another process, fixing http://bugs.python.org/issue6973. >>> import psutil -- cgit v1.2.1 From b6e452b51f661babf4889b9d4b9e3537d273799f Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Sat, 20 Jun 2015 14:06:32 +0200 Subject: improve test coverage for open_files on linux --- docs/index.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'docs/index.rst') diff --git a/docs/index.rst b/docs/index.rst index 9d527ebb..51cc6c7b 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -598,9 +598,8 @@ Exceptions method called the OS may be able to succeed in retrieving the process information or not. Note: this is a subclass of :class:`NoSuchProcess` so if you're not - interested in retrieving zombies while iterating over all processes (e.g. - via :func:`process_iter()`) you can ignore this exception and just catch - :class:`NoSuchProcess`. + interested in retrieving zombies (e.g. when using :func:`process_iter()`) + you can ignore this exception and just catch :class:`NoSuchProcess`. *New in 3.0.0* -- cgit v1.2.1