summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/tclUnixPipe.c')
-rw-r--r--unix/tclUnixPipe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/tclUnixPipe.c b/unix/tclUnixPipe.c
index be7b4eb..3d8e680 100644
--- a/unix/tclUnixPipe.c
+++ b/unix/tclUnixPipe.c
@@ -986,7 +986,9 @@ PipeClose2Proc(
*/
Tcl_DetachPids(pipePtr->numPids, pipePtr->pidPtr);
- Tcl_ReapDetachedProcs();
+ if (TclProcessGetAutopurge()) {
+ Tcl_ReapDetachedProcs();
+ }
if (pipePtr->errorFile) {
TclpCloseFile(pipePtr->errorFile);