shithub: riscv

Download patch

ref: 437d0e67ce212de3155758f392f71a174814c528
parent: e92e9cf193d9ab5fe29d9a2178c47bfd03dce315
author: glenda <glenda@9front.local>
date: Sun Aug 7 09:19:42 EDT 2022

ssh: send interrupts even when we're not in raw mode

--- a/sys/src/cmd/ssh.c
+++ b/sys/src/cmd/ssh.c
@@ -1107,7 +1107,8 @@
 			return 0;
 		tty.gen = g;
 		free(s);
-	}
+	}else
+		return 0;
 	if(s = getenv("XPIXELS")){
 		tty.xpixels = atoi(s);
 		free(s);
@@ -1415,8 +1416,8 @@
 		if(n < 0 && wasintr())
 			intr = 1;
 		if(intr){
-			if(!raw) break;
 			if(getdim()){
+				if(!raw) break;
 				sendpkt("busbuuuu", MSG_CHANNEL_REQUEST,
 					send.chan,
 					"window-change", 13,