memset is no longer used to clear sigact
This commit is contained in:
parent
aaaf79d0f7
commit
1e63240dc8
@ -734,8 +734,7 @@ int main(int argc, char** argv) {
|
|||||||
map_put(config, "sort_order", sort_order);
|
map_put(config, "sort_order", sort_order);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct sigaction sigact;
|
struct sigaction sigact = {0};
|
||||||
memset(&sigact, 0, sizeof(sigact));
|
|
||||||
sigact.sa_handler = sig;
|
sigact.sa_handler = sig;
|
||||||
sigaction(SIGTERM, &sigact, NULL);
|
sigaction(SIGTERM, &sigact, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user