Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
simplify pty allocation and implement pty logging
lxc-attach allocated a pty in a manner that relied on ts->stdinfd and ts->stdoutfd to be set. We had to resort to a trick to get it working when output is redirected. The new implementation gets rid of the black magic and also simplifies the code. This commit also implements pty logging for lxc-attach. Users will now be able to log commands and corresponding output to a file given that lxc-attach allocates a pty. Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
- Loading branch information
Showing
4 changed files
with
20 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters