Skip to content

Instantly share code, notes, and snippets.

@ThomasAdam
Created May 4, 2013 22:58
Show Gist options
  • Save ThomasAdam/5519060 to your computer and use it in GitHub Desktop.
Save ThomasAdam/5519060 to your computer and use it in GitHub Desktop.
SIGWINCH
diff --git a/client.c b/client.c
index 691ace3..f9c2244 100644
--- a/client.c
+++ b/client.c
@@ -402,6 +402,7 @@ client_signal(int sig, unused short events, unused void *data)
break;
case SIGWINCH:
client_write_server(MSG_RESIZE, NULL, 0);
+ log_debug("SIGWINCH: MSG_RESIZE message sent");
break;
case SIGCONT:
memset(&sigact, 0, sizeof sigact);
diff --git a/server-client.c b/server-client.c
index 1c15a55..f9ffa4b 100644
--- a/server-client.c
+++ b/server-client.c
@@ -847,6 +847,7 @@ server_client_msg_dispatch(struct client *c)
if (tty_resize(&c->tty)) {
recalculate_sizes();
server_redraw_client(c);
+ log_debug("Dealt with MSG_RESIZE");
}
break;
case MSG_EXITING:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment