summaryrefslogtreecommitdiff
path: root/grc/core/utils/extract_docs.py
diff options
context:
space:
mode:
Diffstat (limited to 'grc/core/utils/extract_docs.py')
-rw-r--r--grc/core/utils/extract_docs.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/grc/core/utils/extract_docs.py b/grc/core/utils/extract_docs.py
index 306940dcfd..9daac3f361 100644
--- a/grc/core/utils/extract_docs.py
+++ b/grc/core/utils/extract_docs.py
@@ -166,7 +166,11 @@ class SubprocessLoader(object):
break # normal termination, return
finally:
if self._worker:
+ self._worker.stdin.close()
+ self._worker.stdout.close()
+ self._worker.stderr.close()
self._worker.terminate()
+ self._worker.wait()
else:
print("Warning: docstring loader crashed too often", file=sys.stderr)
self._thread = None