version 1.89, 2019/05/15 09:07:46 |
version 1.90, 2019/06/28 13:35:03 |
|
|
sa.sa_handler = sig_handler; |
sa.sa_handler = sig_handler; |
|
|
for (i = 0; signals[i] != 0; i++) { |
for (i = 0; signals[i] != 0; i++) { |
if (sigaction(signals[i], &sa, NULL) < 0) { |
if (sigaction(signals[i], &sa, NULL) == -1) { |
warn("sigaction(%s)", strsignal(signals[i])); |
warn("sigaction(%s)", strsignal(signals[i])); |
continue; |
continue; |
} |
} |
|
|
} |
} |
|
|
if (real_outfile) { |
if (real_outfile) { |
if (rename(outfile, real_outfile) < 0) |
if (rename(outfile, real_outfile) == -1) |
err(2, "%s", real_outfile); |
err(2, "%s", real_outfile); |
sort_free(outfile); |
sort_free(outfile); |
} |
} |