]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
console: lxc_terminal_sigwinch()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 15:12:51 +0000 (16:12 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 21:15:21 +0000 (22:15 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/commands.c
src/lxc/console.c
src/lxc/console.h

index 92363fa871e335e59a0b44e8ef41a94482ff4d8f..53b0318a485e9dc1def0323ca42f674dbf874269 100644 (file)
@@ -685,7 +685,7 @@ static int lxc_cmd_console_winch_callback(int fd, struct lxc_cmd_req *req,
 {
        struct lxc_cmd_rsp rsp = { .data = 0 };
 
-       lxc_console_sigwinch(SIGWINCH);
+       lxc_terminal_sigwinch(SIGWINCH);
 
        return lxc_cmd_rsp_send(fd, &rsp);
 }
index a5a050203253e026789daf916044c1194c623294..624f3df783499991268a27a47003af3d938bbcf7 100644 (file)
@@ -96,7 +96,7 @@ static void lxc_terminal_winch(struct lxc_tty_state *ts)
                lxc_cmd_console_winch(ts->winch_proxy, ts->winch_proxy_lxcpath);
 }
 
-void lxc_console_sigwinch(int sig)
+void lxc_terminal_sigwinch(int sig)
 {
        struct lxc_list *it;
        struct lxc_tty_state *ts;
index 6e10da91cf9464683838bd3b8568b4b71528032a..82b5fb937c13e5caadf7b3abc9b6cad9e88b3398 100644 (file)
@@ -119,7 +119,7 @@ extern int  lxc_console_mainloop_add(struct lxc_epoll_descr *, struct lxc_pty *)
 /*
  * Handle SIGWINCH events on the allocated ptys.
  */
-extern void lxc_console_sigwinch(int sig);
+extern void lxc_terminal_sigwinch(int sig);
 
 /*
  * Connect to one of the ptys given to the container via lxc.tty.max.
@@ -199,7 +199,7 @@ extern void lxc_terminal_winsz(int srcfd, int dstfd);
  * Note that the signal handler isn't installed as a classic asychronous
  * handler, rather signalfd(2) is used so that we can handle the signal when
  * we're ready for it. This avoids deadlocks since a signal handler (ie
- * lxc_console_sigwinch()) would need to take the thread mutex to prevent
+ * lxc_terminal_sigwinch()) would need to take the thread mutex to prevent
  * lxc_ttys list corruption, but using the fd we can provide the tty_state
  * needed to the callback (lxc_console_cb_signal_fd()).
  *