From 7b8ce267d97d4137f53fa661fbb6667a7dc0af8b Mon Sep 17 00:00:00 2001 From: Greg Alexander Date: Sat, 28 Oct 2017 14:20:35 -0400 Subject: [PATCH] disable use of sigprocmask() in rsync, because Android Oreo (quite inappropriately) seems to terminate the process when it is called. --- rsync/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rsync/config.h b/rsync/config.h index 78dbfce..925dcf0 100644 --- a/rsync/config.h +++ b/rsync/config.h @@ -47,7 +47,15 @@ #define HAVE_GETADDRINFO 1 #define HAVE_CHMOD 1 #define HAVE_SIGACTION 1 +/* Bionic supplies sigprocmask() but in Android Oreo and beyond, it seems to be: + * fprintf(stderr, "Bad system call\n"); + * exit(0); + * When it should probably be: + * errno=ENOSYS; + * return -1; + * WTF, Bionic. #define HAVE_SIGPROCMASK 1 +*/ #define SUPPORT_LINKS 1 #define SUPPORT_HARD_LINKS 1 #define HAVE_LINK 1