static gboolean register_signal_handlers(void)

{

    struct sigaction sigact, sigact_chld;

    int ret;



    memset(&sigact, 0, sizeof(struct sigaction));

    sigact.sa_handler = quit_handler;



    ret = sigaction(SIGINT, &sigact, NULL);

    if (ret == -1) {

        g_error("error configuring signal handler: %s", strerror(errno));

        return false;

    }

    ret = sigaction(SIGTERM, &sigact, NULL);

    if (ret == -1) {

        g_error("error configuring signal handler: %s", strerror(errno));

        return false;

    }



    memset(&sigact_chld, 0, sizeof(struct sigaction));

    sigact_chld.sa_handler = child_handler;

    sigact_chld.sa_flags = SA_NOCLDSTOP;

    ret = sigaction(SIGCHLD, &sigact_chld, NULL);

    if (ret == -1) {

        g_error("error configuring signal handler: %s", strerror(errno));

    }



    return true;

}

static gboolean register_signal_handlers(void)

{

    struct sigaction sigact, sigact_chld;

    int ret;



    memset(&sigact, 0, sizeof(struct sigaction));

    sigact.sa_handler = quit_handler;



    ret = sigaction(SIGINT, &sigact, NULL);

    if (ret == -1) {

        g_error("error configuring signal handler: %s", strerror(errno));

        return false;

    }

    ret = sigaction(SIGTERM, &sigact, NULL);

    if (ret == -1) {

        g_error("error configuring signal handler: %s", strerror(errno));

        return false;

    }



    memset(&sigact_chld, 0, sizeof(struct sigaction));

    sigact_chld.sa_handler = child_handler;

    sigact_chld.sa_flags = SA_NOCLDSTOP;

    ret = sigaction(SIGCHLD, &sigact_chld, NULL);

    if (ret == -1) {

        g_error("error configuring signal handler: %s", strerror(errno));

    }



    return true;

}

    struct sigaction sigact, sigact_chld;     memset(&sigact_chld, 0, sizeof(struct sigaction));     sigact_chld.sa_handler = child_handler;     sigact_chld.sa_flags = SA_NOCLDSTOP;     ret = sigaction(SIGCHLD, &sigact_chld, NULL);     if (ret == -1) {         g_error("error configuring signal handler: %s", strerror(errno));
static gboolean FUNC_0(void)

{

    struct sigaction VAR_0, VAR_1;

    int VAR_2;



    memset(&VAR_0, 0, sizeof(struct sigaction));

    VAR_0.sa_handler = quit_handler;



    VAR_2 = sigaction(SIGINT, &VAR_0, NULL);

    if (VAR_2 == -1) {

        g_error("error configuring signal handler: %s", strerror(errno));

        return false;

    }

    VAR_2 = sigaction(SIGTERM, &VAR_0, NULL);

    if (VAR_2 == -1) {

        g_error("error configuring signal handler: %s", strerror(errno));

        return false;

    }



    memset(&VAR_1, 0, sizeof(struct sigaction));

    VAR_1.sa_handler = child_handler;

    VAR_1.sa_flags = SA_NOCLDSTOP;

    VAR_2 = sigaction(SIGCHLD, &VAR_1, NULL);

    if (VAR_2 == -1) {

        g_error("error configuring signal handler: %s", strerror(errno));

    }



    return true;

}

static gboolean FUNC_0(void)
{ struct sigaction VAR_0, VAR_1; int VAR_2; memset(&VAR_0, 0, sizeof(struct sigaction)); VAR_0.sa_handler = quit_handler; VAR_2 = sigaction(SIGINT, &VAR_0, NULL); if (VAR_2 == -1) { g_error("error configuring signal handler: %s", strerror(errno)); return false; } VAR_2 = sigaction(SIGTERM, &VAR_0, NULL); if (VAR_2 == -1) { g_error("error configuring signal handler: %s", strerror(errno)); return false; } memset(&VAR_1, 0, sizeof(struct sigaction)); VAR_1.sa_handler = child_handler; VAR_1.sa_flags = SA_NOCLDSTOP; VAR_2 = sigaction(SIGCHLD, &VAR_1, NULL); if (VAR_2 == -1) { g_error("error configuring signal handler: %s", strerror(errno)); } return true; }