diff options
author | marcel <marcel@FreeBSD.org> | 1999-09-28 13:26:11 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 1999-09-28 13:26:11 +0000 |
commit | 971179f4cd40b802ce6d37b2c3f09cdee97fa8ac (patch) | |
tree | 5a26e5cbd3785a4db0e5f2890d0efd0815f19c9c | |
parent | 2c960407e2b84c3c61c7574c0835bd445b348ed7 (diff) | |
download | FreeBSD-src-971179f4cd40b802ce6d37b2c3f09cdee97fa8ac.zip FreeBSD-src-971179f4cd40b802ce6d37b2c3f09cdee97fa8ac.tar.gz |
Explicitly use sigemptyset to clear a sigset_t. Explicit
initialization of sa_flags allows us to lose the bzero.
-rw-r--r-- | lib/libc/net/res_send.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index fc394ca..15f2a13 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; |