wm: ticl

Download patch

ref: 99aaa335c1a504b5210fd9e354a49749cec5c88b
parent: 93e6ec6e9bef1c1bc2b3fa75836b422aa96ca13b
author: libredev <libredev@ircforever.org>
date: Sat Nov 19 15:06:47 EST 2022

abort on connection close

--- a/main.c
+++ b/main.c
@@ -204,9 +204,11 @@
 	if ((n = readline(pfdset[id].fd, buffer, sizeof(buffer))) < 1) {
 		if (n == 0) {
 			printf("error: remote host closed connection: %s\n", strerror(errno));
+			terminate(1);
 			/* fd_del(pfdset[id].fd); */
 		} else if ((errno != EAGAIN) && (errno != EINTR)) {
 			printf("error: read: %s\n", strerror(errno));
+			terminate(1);
 		}
 		return;
 	}