commit 5b8bd6016a9bc52b643e55335b46de1aaeae2940 Quentin Rameau <quinq@fifth.space> 2019-11-02 14:58:47 +0100 Only block SIGWINCH when connecting This relaxes a bit the mask set in dba0b8d.
sacc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sacc.c b/sacc.c index c4092e5..fc110d2 100644 --- 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)) {