Skip to content

Commit 794cf09

Browse files
committed
Allow sphinx-autobuild time to shutdown http server in tox
- Tox is apparently a bit aggressive in shutting down processes when it receives a CTRL+C; this can ultimately result in tox exiting and leaving the HTTP server still running requiring manual process kills. - I think this results from ``sphinx-autobuild`` receiving the SIGINT and starting its shutdown...but tox then sends it _another_ SIGINT that seems to abort the shutdown procedure for ``sphinx-autobuild``. - So, this gives ``sphinx-autobuild`` a window of time to shutdown before tox starts trying to help.
1 parent 29a0adb commit 794cf09

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

changes/xxx.misc.rst

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The "live docs" tox environments were updated to allow a grace period for ``sphinx-autobuild`` to shutdown the HTTP server. Without waiting, the HTTP server may have been left running when tox exited.

tox.ini

+2
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ sphinx_args = -T -W --keep-going --jobs auto
9393

9494
[testenv:docs{,-lint,-all,-live,-live-src}]
9595
skip_install = True
96+
# give sphinx-autobuild time to shutdown http server
97+
suicide_timeout = 1
9698
deps =
9799
# editable install so docstrings can be updated for 'all' and 'live'
98100
-e {tox_root}{/}core[docs]

0 commit comments

Comments
 (0)