Explicitly use sigemptyset to clear a sigset_t. Explicit

initialization of sa_flags allows us to lose the bzero.
This commit is contained in:
Marcel Moolenaar 1999-09-28 13:26:11 +00:00
parent 4c9d9fc620
commit 06ceca4d89

View File

@ -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;