summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2017-11-07 11:23:04 +0100
committerGiampaolo Rodola <g.rodola@gmail.com>2017-11-07 11:23:04 +0100
commit62c845a7d97eea0c2740b8f488a62b6c08eb4331 (patch)
tree4a7b6c1e9214bc524305ed054b2cd978ccbed50f
parentbbab187d20908cca7a51ee3ca0267ab69f7c8c9d (diff)
downloadpsutil-62c845a7d97eea0c2740b8f488a62b6c08eb4331.tar.gz
fix #1166 (doc mistake)
-rw-r--r--DEVGUIDE.rst2
-rw-r--r--docs/index.rst4
2 files changed, 3 insertions, 3 deletions
diff --git a/DEVGUIDE.rst b/DEVGUIDE.rst
index 9b26fba9..2d0af7fc 100644
--- a/DEVGUIDE.rst
+++ b/DEVGUIDE.rst
@@ -44,7 +44,7 @@ Some useful make commands::
$ make setup-dev-env # install useful dev libs (pyflakes, unittest2, etc.)
$ make test # run unit tests
$ make test-memleaks # run memory leak tests
- $ make coverage # run test coverage
+ $ make test-coverage # run test coverage
$ make flake8 # run PEP8 linter
There are some differences between ``make`` on UNIX and Windows.
diff --git a/docs/index.rst b/docs/index.rst
index ac591d30..f9f4f398 100644
--- a/docs/index.rst
+++ b/docs/index.rst
@@ -2429,13 +2429,13 @@ resources.
for p in procs:
p.terminate()
gone, alive = psutil.wait_procs(procs, timeout=timeout, callback=on_terminate)
- if not alive:
+ if alive:
# send SIGKILL
for p in alive:
print("process {} survived SIGTERM; trying SIGKILL" % p)
p.kill()
gone, alive = psutil.wait_procs(alive, timeout=timeout, callback=on_terminate)
- if not alive:
+ if alive:
# give up
for p in alive:
print("process {} survived SIGKILL; giving up" % p)