Difference in behavior between Stdio::piped() and tokio::net::unix::pipe #7376
Labels
A-tokio
Area: The main tokio crate
C-feature-request
Category: A feature request.
M-process
Module: tokio/process
Is your feature request related to a problem? Please describe.
Repro code does this:
sh -c 'sleep 1000000000'
(exec sleep 1
reproduces it too)sleep
process)When using
Stdio::piped()
everything works fine.When using
tokio::net::unix::pipe
, last step hangs.I don't have explanation why it hangs.
Describe the solution you'd like
Around this line
tokio/tokio/src/net/unix/pipe.rs
Lines 24 to 25 in ab8d7b8
explain the difference.
Describe alternatives you've considered
None.
Additional context
Reproduces on Mac and Linux.
The text was updated successfully, but these errors were encountered: