Fix previous commit. The standards specifically say: "The structure

sigaction, used to describe an action to be taken, is defined in the
header <signal.h> to include at least the following members:"
                             ^^^^^^^^
A sigaction defined on stack with essentially random contents may have
just about anything underneath fields that the program doesn't know about.
It is not safe to delete the bzero.
This commit is contained in:
Peter Wemm 1999-09-28 15:40:17 +00:00
parent 3f074b00c4
commit cde8d55a02
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=51762

View File

@ -665,6 +665,7 @@ 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;