Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lxc-attach: error on -L/--pty-log + redirection
pty logging only works correctly when stdout and stderr refer to a pty. If they do not, we do not dup2() them and lxc_console_cb_con() will never write to the corresponding log file descriptor. When redirection on stdout and stderr is used we can safely assume that the user is already logging to a file or /dev/null and creating an additional pty log doesn't seem to make sense. Signed-off-by: Christian Brauner <christian.brauner@mailbox.org>
- Loading branch information
Christian Brauner
committed
Apr 13, 2016
1 parent
c4828d7
commit c87524b
Showing
1 changed file
with
36 additions
and
20 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