Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
rsp.ret = 0;
if (log->clear)
- /* clear the ringbuffer */
- lxc_ringbuf_clear(buf);
+ lxc_ringbuf_clear(buf); /* clear the ringbuffer */
else if (rsp.datalen > 0)
lxc_ringbuf_move_read_addr(buf, rsp.datalen);
* This is the console log file. Please note that the console log file is
* (implementation wise not content wise) independent of the console ringbuffer.
*/
-int lxc_console_create_log_file(struct lxc_pty *console)
+int lxc_terminal_create_log_file(struct lxc_pty *console)
{
if (!console->log_path)
return 0;
return -1;
/* create console log file */
- ret = lxc_console_create_log_file(console);
+ ret = lxc_terminal_create_log_file(console);
if (ret < 0)
goto err;
extern void lxc_terminal_signal_fini(struct lxc_tty_state *ts);
extern int lxc_terminal_write_ringbuffer(struct lxc_pty *console);
-extern int lxc_console_create_log_file(struct lxc_pty *console);
+extern int lxc_terminal_create_log_file(struct lxc_pty *console);
extern int lxc_terminal_io_cb(int fd, uint32_t events, void *data,
struct lxc_epoll_descr *descr);