Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

in basic example select blocks after child has exited and wrapper requires additional input #15

Open
mzr opened this issue Jul 10, 2024 · 0 comments

Comments

@mzr
Copy link

mzr commented Jul 10, 2024

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant