tOnly block SIGWINCH when connecting - sacc - sacc(omys), simple console gopher client (mirror) HTML git clone https://git.parazyd.org/sacc DIR Log DIR Files DIR Refs DIR LICENSE --- DIR commit 5b8bd6016a9bc52b643e55335b46de1aaeae2940 DIR parent 250ea3842c49c0f1b8224a607e5a4d7fd5dd7ae3 HTML Author: Quentin Rameau <quinq@fifth.space> Date: Sat, 2 Nov 2019 14:58:47 +0100 Only block SIGWINCH when connecting This relaxes a bit the mask set in dba0b8d. Diffstat: M sacc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/sacc.c b/sacc.c t@@ -463,7 +463,8 @@ connectto(const char *host, const char *port) struct addrinfo *addrs, *addr; int r, sock = -1; - sigfillset(&set); + sigemptyset(&set); + sigaddset(&set, SIGWINCH); sigprocmask(SIG_BLOCK, &set, &oset); if (r = getaddrinfo(host, port, &hints, &addrs)) {