Skip to content

Commit 50680fa

Browse files
committed
comment on using files instead of pipes
1 parent 2faca4a commit 50680fa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gotchas.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ methods like
266266
Python or
267267
[`Handle::try_wait`](https://docs.rs/duct/latest/duct/struct.Handle.html#method.try_wait)
268268
in Rust need to explicitly check whether IO threads have exited before doing
269-
any blocking joins.
269+
any blocking joins. These situations are also why we can't use files instead of
270+
pipes to capture output: we'd have no way to know whether grandchild processes
271+
were finished writing.
270272

271273
## Killing grandchild processes?
272274

0 commit comments

Comments
 (0)