got_sigchld
int status, got_sigchld = 0;
signal_set(&sig_ev, SIGCHLD, child_signal_cb, &got_sigchld);
if (!got_sigchld) {
if (got_sigchld) {
got_sigchld = 0;
got_sigchld = 1;
static volatile sig_atomic_t got_sigchld;
volatile sig_atomic_t got_sigchld;
if (!got_sigchld)
got_sigchld = 0;
got_sigchld = 1;
static void got_sigchld(int);
signal(SIGCHLD, got_sigchld);