X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/ca20c7fd625c27f540b0ae5be027cb51700c80e3..7352b8736b94a7cb375cc2789fba6728d5c35955:/socket.c diff --git a/socket.c b/socket.c index cb15441f..a19542f8 100644 --- a/socket.c +++ b/socket.c @@ -374,7 +374,8 @@ int is_a_socket(int fd) } -static RETSIGTYPE sigchld_handler(int UNUSED(val)) { +static RETSIGTYPE sigchld_handler(UNUSED(int val)) +{ signal(SIGCHLD, sigchld_handler); #ifdef WNOHANG while (waitpid(-1, NULL, WNOHANG) > 0) {}