summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
e6368a7)
Rather than writing the magic out longhand.
* Hopefully this will prevent bad things happening if we have an accident.
*/
* Hopefully this will prevent bad things happening if we have an accident.
*/
- for (i = 0; i < sizeof(sigcatch)/sizeof(sigcatch[0]); i++) {
+ for (i = 0; i < N(sigcatch); i++) {
if (signal(sigcatch[i], sigmumble) == SIG_ERR)
die(2, "signal (%d): %s", i, strerror(errno));
}
if (signal(sigcatch[i], sigmumble) == SIG_ERR)
die(2, "signal (%d): %s", i, strerror(errno));
}