summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
dad601b)
Brace initialization can't initialize .sa_mask.
struct sigaction action = {
.sa_handler = sigchld_handler,
};
struct sigaction action = {
.sa_handler = sigchld_handler,
};
+ sigemptyset(&action.sa_mask);
if (sigaction(SIGCHLD, &action, NULL) != 0) {
die("sigaction");
}
if (sigaction(SIGCHLD, &action, NULL) != 0) {
die("sigaction");
}