summaryrefslogtreecommitdiff
path: root/doc/subprocess.rst
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-05 06:06:35 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-05 06:06:35 -0400
commit3dcb8333e3a99e464ab6101b54d36fff36fe0065 (patch)
tree422e1145850c742693b52e247e1559aa176d6c80 /doc/subprocess.rst
parentd6ae810aaaf3a35d9f947428f3fc22f0d8750073 (diff)
downloadpython-coveragepy-3dcb8333e3a99e464ab6101b54d36fff36fe0065.tar.gz
Merge a doc pull request from github
Diffstat (limited to 'doc/subprocess.rst')
-rw-r--r--doc/subprocess.rst12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/subprocess.rst b/doc/subprocess.rst
index 5a55dc4..51b65f0 100644
--- a/doc/subprocess.rst
+++ b/doc/subprocess.rst
@@ -74,3 +74,15 @@ Note that if you use one of these techniques, you must undo them if you
uninstall coverage.py, since you will be trying to import it during Python
start-up. Be sure to remove the change when you uninstall coverage.py, or use
a more defensive approach to importing it.
+
+
+Signal Handlers and atexit
+--------------------------
+
+To successfully write a coverage file, the Python (sub)-process under
+anaylsis must shut down cleanly and have a chance for ``coverage`` to
+run the ``atexit`` handler it registers.
+
+For example if you send SIGTERM to end the subprocess, but your
+subprocess has never registered any SIGTERM handler then a coverage
+file won't have a chance to get written by that subprocess.