return -ENODEV;
}
-int lxc_console_create(struct lxc_conf *conf)
+int lxc_terminal_create(struct lxc_conf *conf)
{
int ret;
struct lxc_pty *console = &conf->console;
extern int lxc_pty_create(struct lxc_pty *console);
/**
- * lxc_console_create: Create a new pty.
+ * lxc_terminal_create: Create a new pty.
* - In addition to lxc_pty_create() also sets up all pty logs.
*/
-extern int lxc_console_create(struct lxc_conf *);
+extern int lxc_terminal_create(struct lxc_conf *);
/*
- * Delete a pty created via lxc_console_create():
+ * Delete a pty created via lxc_terminal_create():
* - set old terminal settings
- * - memory allocated via lxc_console_create() is free()ed.
+ * - memory allocated via lxc_terminal_create() is free()ed.
* - close master/slave pty pair and allocated fd for the peer (usually
* /dev/tty)
* Registered handlers in a mainloop are not automatically deleted.
TRACE("Set up signal fd");
/* Do this after setting up signals since it might unblock SIGWINCH. */
- ret = lxc_console_create(conf);
+ ret = lxc_terminal_create(conf);
if (ret < 0) {
ERROR("Failed to create console");
goto out_restore_sigmask;
/* Some init's such as busybox will set sane tty settings on stdin,
* stdout, stderr which it thinks is the console. We already set them
* the way we wanted on the real terminal, and we want init to do its
- * setup on its console ie. the pty allocated in lxc_console_create() so
+ * setup on its console ie. the pty allocated in lxc_terminal_create() so
* make sure that that pty is stdin,stdout,stderr.
*/
if (handler->conf->console.slave >= 0) {