openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/nss-pam-ldapd/0.9.8-r0/nss-pam-ldapd-0.9.8/nslcd/nslcd.c
static void install_sighandler(int signum, void (*handler)(int))
{
    struct sigaction act;
    memset(&act, 0, sizeof(struct sigaction));
    act.sa_handler = handler;
    sigemptyset(&act.sa_mask);
    act.sa_flags = SA_RESTART | SA_NOCLDSTOP;
    if (sigaction(signum, &act, NULL) != 0)
    {
        log_log(LOG_ERR, "error installing signal handler for '%s': %s",
                signame(signum), strerror(errno));
        exit(EXIT_FAILURE);
    }
}
/* try to install signal handler and check result */
try to install signal handler and check result
try to install signal handler and check result
static void install_sighandler(int signum, void (*handler)(int))
{
    struct sigaction act;
    memset(&act, 0, sizeof(struct sigaction));
    act.sa_handler = handler;
    sigemptyset(&act.sa_mask);
    act.sa_flags = SA_RESTART | SA_NOCLDSTOP;
    if (sigaction(signum, &act, NULL) != 0)
    {
        log_log(LOG_ERR, "error installing signal handler for '%s': %s",
                signame(signum), strerror(errno));
        exit(EXIT_FAILURE);
    }
}
static void install_sighandler ( int signum , void ( * handler ) ( int ) ) { struct sigaction act ; memset ( & act , 0 , sizeof ( struct sigaction ) ) ; act . sa_handler = handler ; sigemptyset ( & act . sa_mask ) ; act . sa_flags = SA_RESTART | SA_NOCLDSTOP ; if ( sigaction ( signum , & act , NULL ) != 0 ) { log_log ( LOG_ERR , " " , signame ( signum ) , strerror ( errno ) ) ; exit ( EXIT_FAILURE ) ; } }
try to install signal handler and check result
try to install signal handler and check result