The following question stems from page 329 in book "Advanced Programming in the Unix Environment" by Stevens and Rago.
Near the top, they say
The question is why wouldn't act.sa_mask =0 do the same thing as sigemptyset(&act.sa.mask) ?Note that we must use sigemptyset to initialize the sa_mask member of the structure. We're not guaranteed that
act.sa_mask = 0;
does the same thing