I'm looking to create a wrapper program that tricks the child process into thinking it still has an interactive terminal. The example in basic.rs is almost what I need, however if the child exits on its own, select blocks and the wrapper is not able to detect it can wait on a child, and exit.
I need to have some extra input in the terminal so select resumes and waits on the child.
Wrapping echo abcd in the basic.rs reproduces this.
I can't see a way to adopt this unfortunately. Would appreciate some help here :)
Hi!
I'm looking to create a wrapper program that tricks the child process into thinking it still has an interactive terminal. The example in basic.rs is almost what I need, however if the child exits on its own, select blocks and the wrapper is not able to detect it can
wait
on a child, and exit.I need to have some extra input in the terminal so select resumes and
waits
on the child.Wrapping
echo abcd
in the basic.rs reproduces this.I can't see a way to adopt this unfortunately. Would appreciate some help here :)