-
Notifications
You must be signed in to change notification settings - Fork 147
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
ios_system
should wait for all commands in line
#73
Comments
Indeed. I see where the problem comes from, but the solution is not obvious. Commands should wait for all commands they have started (either with pipe or fork/exec/system), but not for the others. Making sure the command is not blocked by a command in another terminal is the tricky bit. I'm going to think about it. |
I think this is related issue blinksh/blink#637 |
May by whole ios_system should be as meta program... |
The two issues were not related, but I have committed a fix for blinksh/blink#637 I'm not sure what you mean by meta program; would you have a pointer to some documentation? |
Fix committed for this issue (f10015f).
The mistake I made was that once a thread has been detached, it cannot be joined again. Now, we don't detach the last command in the pipe, so we can join it later. |
Good catch. Ignore my meta program thing :) Will try it tomorrow Thank you |
Works for me. Thank you! |
If I add |
Hmmm.... that's odd. |
For a test, I copied getopts from ios_system and make all vars with thread_ prefix. And it works. |
Example:
echo 'nice' | ssh host
Currently
ios_system
exits after first command (echonice
) and start second command (ssh host).But we already show
blink>
prompt :)The text was updated successfully, but these errors were encountered: