With the new tty functionality if you are using --console-socket on runc exec, because exec has no create/start there is no way to get the console before a command like true exits or echo hi and get the output because the command will exit before runc returns the console master to the caller.
We need the sending of the console to block on the caller reading the master instead of continuing. I think its is because runc uses two sockets, one from the child to parent, and one for runc to its caller.
@cyphar can we just use one socket for this?
With the new tty functionality if you are using
--console-socketon runc exec, because exec has no create/start there is no way to get the console before a command liketrueexits orecho hiand get the output because the command will exit before runc returns the console master to the caller.We need the sending of the console to block on the caller reading the master instead of continuing. I think its is because runc uses two sockets, one from the child to parent, and one for runc to its caller.
@cyphar can we just use one socket for this?