return 0;
}
-struct lxc_tty_state *lxc_console_signal_init(int srcfd, int dstfd)
+struct lxc_tty_state *lxc_terminal_signal_init(int srcfd, int dstfd)
{
int ret;
bool istty;
if (lxc_setup_tios(console->peerpty.slave, &oldtermio) < 0)
goto err1;
- ts = lxc_console_signal_init(console->peerpty.master, console->master);
+ ts = lxc_terminal_signal_init(console->peerpty.master, console->master);
if (!ts)
goto err1;
goto on_error1;
}
- ts = lxc_console_signal_init(console->peer, console->master);
+ ts = lxc_terminal_signal_init(console->peer, console->master);
console->tty_state = ts;
if (!ts) {
WARN("Failed to install signal handler");
if (ret < 0)
TRACE("Process is already group leader");
- ts = lxc_console_signal_init(stdinfd, masterfd);
+ ts = lxc_terminal_signal_init(stdinfd, masterfd);
if (!ts) {
ret = -1;
goto close_fds;
extern void lxc_terminal_winsz(int srcfd, int dstfd);
/*
- * lxc_console_signal_init: install signal handler
+ * lxc_terminal_signal_init: install signal handler
*
* @srcfd : src for winsz in SIGWINCH handler
* @dstfd : dst for winsz in SIGWINCH handler
*
* This function allocates memory. It is up to the caller to free it.
*/
-extern struct lxc_tty_state *lxc_console_signal_init(int srcfd, int dstfd);
+extern struct lxc_tty_state *lxc_terminal_signal_init(int srcfd, int dstfd);
/*
* Handler for signal events. To be registered via the corresponding functions
/*
* lxc_console_signal_fini: uninstall signal handler
*
- * @ts : the lxc_tty_state returned by lxc_console_signal_init
+ * @ts : the lxc_tty_state returned by lxc_terminal_signal_init
*
* Restore the saved signal handler that was in effect at the time
- * lxc_console_signal_init() was called.
+ * lxc_terminal_signal_init() was called.
*
* Must be called with process_lock held to protect the lxc_ttys list, or
* from a non-threaded context.