From 06ceca4d89f529ebf5b0568206033815027a5776 Mon Sep 17 00:00:00 2001 From: Marcel Moolenaar Date: Tue, 28 Sep 1999 13:26:11 +0000 Subject: [PATCH] Explicitly use sigemptyset to clear a sigset_t. Explicit initialization of sa_flags allows us to lose the bzero. --- lib/libc/net/res_send.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index fc394ca54185..15f2a13b8ffa 100644 --- a/lib/libc/net/res_send.c +++ b/lib/libc/net/res_send.c @@ -665,7 +665,8 @@ read_len: pfd.fd = s; pfd.events = POLLIN; if (use_poll == 1) { - bzero(&sa, sizeof(sa)); + sigemptyset(&sa.sa_mask); + sa.sa_flags = 0; sa.sa_handler = SIG_IGN; if (sigaction(SIGSYS, &sa, &osa) >= 0) sigsys_installed = 1;