MCPcopy Create free account
hub / github.com/coreutils/coreutils / install_sigchld

Function install_sigchld

src/timeout.c:403–417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

401}
402
403static void
404install_sigchld (void)
405{
406 struct sigaction sa;
407 sigemptyset (&sa.sa_mask); /* Allow concurrent calls to handler */
408 sa.sa_handler = chld;
409 sa.sa_flags = SA_RESTART; /* Restart syscalls if possible, as that's
410 more likely to work cleanly. */
411
412 sigaction (SIGCHLD, &sa, NULL);
413
414 /* We inherit the signal mask from our parent process,
415 so ensure SIGCHLD is not blocked. */
416 unblock_signal (SIGCHLD);
417}
418
419/* Filter out signals that were ignored. */
420

Callers 1

mainFunction · 0.85

Calls 2

unblock_signalFunction · 0.85
sigactionClass · 0.70

Tested by

no test coverage detected