MCPcopy Index your code
hub / github.com/RsyncProject/rsync / sigchld_handler

Function sigchld_handler

socket.c:526–534  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

524
525
526static void sigchld_handler(UNUSED(int val))
527{
528#ifdef WNOHANG
529 while (waitpid(-1, NULL, WNOHANG) > 0) {}
530#endif
531#ifndef HAVE_SIGACTION
532 signal(SIGCHLD, sigchld_handler);
533#endif
534}
535
536
537void start_accept_loop(int port, int (*fn)(int, int))

Callers

nothing calls this directly

Calls 1

waitpidFunction · 0.85

Tested by

no test coverage detected