Skip to content
This repository was archived by the owner on Feb 8, 2021. It is now read-only.

Conversation

@yyb196
Copy link
Contributor

@yyb196 yyb196 commented Jul 30, 2017

Fixes #520 #527
only assign pty path to one process named runv-shim whose lifecyle is same as the terminal.

After did a lot of tests in my environment, I found that if multiple processes
have opened the same pty, docker-containerd-shim wonn't get the close event
of pty and will get stucked on waiting streem terminate forever.

Because runv and runv-containerd don't have a controlling tty, when they
opening the pty, it will become their controlling tty automatically.
that's why it complained about "operation not permitted" in case which mentioned
in bug #520. AFAIK a pty can only become controlling tty of one process.

Signed-off-by: frank yang [email protected]

only assign pty path to one process named runv-shim whose lifecyle is same as the terminal.

After did a lot of tests in my environment, I found that if multiple processes
have opened the same pty, docker-containerd-shim wonn't get the close event
of pty and will get stucked on waiting streem terminate forever.

Because runv and runv-containerd don't have a controlling tty, when they
opening the pty, it will become their controlling tty automatically.
that's why it complained about "operation not permitted" in case which mentioned
in bug hyperhq#520. AFAIK a pty can only become controlling tty of one process.

Signed-off-by: frank yang <[email protected]>
@gnawux
Copy link
Member

gnawux commented Aug 3, 2017

@yyb196 we merged #537 , which aimed to improve the compatibility with the latest containerd and changed the cli much. Could you help check whether need to update this PR? Thank you very much.

@laijs
Copy link
Contributor

laijs commented Aug 15, 2017

runv-containerd is gone now after refactor, I don't think is pr is needed anymore. @yyb196 what do you think? And thank you for your contribution!

@yyb196
Copy link
Contributor Author

yyb196 commented Aug 16, 2017

i will check the new version of code later, what should i do to close this pr. @laijs

@allencloud
Copy link
Contributor

I am afraid conflict happens here in the PR. A rebase needed though. @yyb196 🍻

@allencloud
Copy link
Contributor

still friendly ping @yyb196 🍻

@yyb196 yyb196 closed this Oct 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug]failed to start runv container with docker daemon

4 participants