diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-05 06:06:35 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-05 06:06:35 -0400 |
commit | 56c605f5e86f34768dbc55a7dba6b4d1a6b78f59 (patch) | |
tree | c0ce201ce82dd16d241d70ac6671099ae8b7255a | |
parent | 4806d0e7bdfeccfb75c2064bad787d66a375cf40 (diff) | |
download | python-coveragepy-git-56c605f5e86f34768dbc55a7dba6b4d1a6b78f59.tar.gz |
Merge a doc pull request from github
-rw-r--r-- | doc/subprocess.rst | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/subprocess.rst b/doc/subprocess.rst index 5a55dc4a..51b65f0a 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. |