The sa_restorer field is not present on some architectures, like alpha.
By using memset, the structure is initialized appropriately regardless of
struct contents.
Signed-off-by: Jon Bernard <jbernard@debian.org>
Acked-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
* Set up the signal handler to reload the cached rules upon reception
* of a SIGUSR2 signal.
*/
+ memset(&sa, 0, sizeof(sa));
sa.sa_handler = &cgre_flash_rules;
- sa.sa_flags = 0;
- sa.sa_restorer = NULL;
sigemptyset(&sa.sa_mask);
if ((ret = sigaction(SIGUSR2, &sa, NULL))) {
flog(LOG_ERR, "Failed to set up signal handler for SIGUSR2."