# lxc-attach -n a runlevel
N 5
# lxc-attach -n a runlevel </dev/null
N 5
# lxc-attach -n a runlevel </dev/null 2>/dev/null
N 5
# lxc-attach -n a runlevel </dev/null 2>/dev/null | cat
So redirecting stdin only now does not show this "lxc_console_cb_tty_master: 683 Bad file" error any more, and redirecting stderr now works too. But redirecting stdout in addition still doesn't?
I locally applied https:/ /github. com/lxc/ lxc/commit/ 12752e2 to our current package and built it. Now it looks better:
# lxc-attach -n a runlevel
N 5
# lxc-attach -n a runlevel </dev/null
N 5
# lxc-attach -n a runlevel </dev/null 2>/dev/null
N 5
# lxc-attach -n a runlevel </dev/null 2>/dev/null | cat
So redirecting stdin only now does not show this "lxc_console_ cb_tty_ master: 683 Bad file" error any more, and redirecting stderr now works too. But redirecting stdout in addition still doesn't?
Maybe I'm missing another fix from trunk, though.