return 0;
on_error:
- lxc_console_delete(pty);
+ lxc_terminal_delete(pty);
lxc_pty_conf_free(pty);
return -1;
}
(void)wait_for_pid(to_cleanup_pid);
if (options->attach_flags & LXC_ATTACH_ALLOCATE_PTY) {
- lxc_console_delete(&pty);
+ lxc_terminal_delete(&pty);
lxc_pty_conf_free(&pty);
}
lxc_proc_put_context_info(init_ctx);
return 0;
}
-void lxc_console_delete(struct lxc_pty *console)
+void lxc_terminal_delete(struct lxc_pty *console)
{
int ret;
return 0;
err:
- lxc_console_delete(console);
+ lxc_terminal_delete(console);
return -ENODEV;
}
return 0;
err:
- lxc_console_delete(console);
+ lxc_terminal_delete(console);
return -ENODEV;
}
* /dev/tty)
* Registered handlers in a mainloop are not automatically deleted.
*/
-extern void lxc_console_delete(struct lxc_pty *);
+extern void lxc_terminal_delete(struct lxc_pty *);
/*
* lxc_terminal_free: mark the console or a tty as unallocated, free any
if (ret < 0)
WARN("%s - Failed to restore signal mask", strerror(errno));
- lxc_console_delete(&handler->conf->console);
+ lxc_terminal_delete(&handler->conf->console);
lxc_delete_tty(&handler->conf->tty_info);
/* The command socket is now closed, no more state clients can register