summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
f4e4207)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
sigset_t sigset;
if ((ret = sigemptyset(&sigset)) < 0) {
sigset_t sigset;
if ((ret = sigemptyset(&sigset)) < 0) {
sa.sa_mask = sigset;
sa.sa_flags = 0;
if ((ret = sigaction(SIGTERM, &sa, NULL)) < 0) {
sa.sa_mask = sigset;
sa.sa_flags = 0;
if ((ret = sigaction(SIGTERM, &sa, NULL)) < 0) {
return ret;
}
if ((ret = sigaction(SIGINT, &sa, NULL)) < 0) {
return ret;
}
if ((ret = sigaction(SIGINT, &sa, NULL)) < 0) {
return ret;
}
if ((ret = sigaction(SIGPIPE, &sa, NULL)) < 0) {
return ret;
}
if ((ret = sigaction(SIGPIPE, &sa, NULL)) < 0) {