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

interpreter: strange pipe behaviour #204

Open
i4ki opened this issue Apr 6, 2017 · 3 comments
Open

interpreter: strange pipe behaviour #204

i4ki opened this issue Apr 6, 2017 · 3 comments

Comments

@i4ki
Copy link
Collaborator

i4ki commented Apr 6, 2017

λ> bash
$ yes "" | make oldconfig
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
$ exit
λ> yes "" | make oldconfig
scripts/kconfig/conf  --oldconfig Kconfig
#
# configuration written to .config
#
...
command does't exit...
^CERROR: <interactive>:1:7: signal: interrupt|success
@i4ki
Copy link
Collaborator Author

i4ki commented Apr 30, 2017

@vitorarins need to use os.Wait(-1, 0) to get same semantic.of waitpid(WAIT_ANY, ...). Or do every wait in a separate goroutine:
https://groups.google.com/forum/m/#!topic/golang-nuts/kaoPxl1L1SY

@vitorarins
Copy link
Member

vitorarins commented Apr 30, 2017

Great! There's a guy in that thread saying that using wait with pid -1 might be dangerous, do you know anything about that?

@i4ki
Copy link
Collaborator Author

i4ki commented May 13, 2017

unfortunately, no :/

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

2 participants