sacc

sacc(omys), simple console gopher client (mirror)
git clone https://git.parazyd.org/sacc
Log | Files | Refs | LICENSE

commit 5b8bd6016a9bc52b643e55335b46de1aaeae2940
parent 250ea3842c49c0f1b8224a607e5a4d7fd5dd7ae3
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:
Msacc.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sacc.c b/sacc.c @@ -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)) {