]> git.ipfire.org Git - thirdparty/lxc.git/commit
terminal: remove sigwinch command 2753/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 13 Dec 2018 14:44:36 +0000 (15:44 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Thu, 13 Dec 2018 14:46:46 +0000 (15:46 +0100)
commit2bd158cc0c79da7d48e36306d41b5677ec976fc6
tree0ac3b798cbd32cc7ea2f3ad4d7915afbb6bdd866
parent40b2dcbc173f30597b120291879f0eb4da45b880
terminal: remove sigwinch command

SIGWINCH is handled in lxc_terminal_signalfd_cb().

I cannot for the life of me figure out what this is supposed to do.
Afaict, it scans a global list that is totally unnecessary and also
let's say you have 100 ttys and for a single one SIGWINCH is sent. In
that case the whole list is walked and two ioctl()s are performed: one
to get window size one to set window size. For 99 of them the window
size hasn't changed.
If we see issues we can revert!

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/commands.c
src/lxc/terminal.c
src/lxc/terminal.h