Introduction
Introduction Statistics Contact Development Disclaimer Help
Only block SIGWINCH when connecting - sacc - sacc - sacc(omys), simple console …
git clone git://git.codemadness.org/sacc
Log
Files
Refs
LICENSE
---
commit 5b8bd6016a9bc52b643e55335b46de1aaeae2940
parent 250ea3842c49c0f1b8224a607e5a4d7fd5dd7ae3
Author: Quentin Rameau <[email protected]>
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(-)
---
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)) {
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.