]> git.proxmox.com Git - mirror_lxc.git/commit - src/lxc/console.c
console: split console setup into logical parts
authorChristian Brauner <christian.brauner@ubuntu.com>
Wed, 15 Nov 2017 11:18:51 +0000 (12:18 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 17 Nov 2017 23:20:56 +0000 (00:20 +0100)
commita030916834aee82c34a015e9c24d8babe2f265c8
tree0dfdf833641e0b3d85dbb3ffece0ef8331de4ecf
parent5928191e83fdb99e45b830f0a7b95bd99eca1d4f
console: split console setup into logical parts

The lxc_console_create() function used to munge the ringbuffer setup and the
log file setup already. This made somewhat sense when we didn't have a separate
ringbuffer log file. Now it's just plain confusing. So split this into logical
helpers that future maintainers can understand:

- lxc_console_create_log_file()
- lxc_console_create_ringbuf(console);
- lxc_console_create_ringbuf_log_file(console);

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/console.c