diff options
Diffstat (limited to 'luni')
-rw-r--r-- | luni/src/main/native/AsynchronousCloseMonitor.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/luni/src/main/native/AsynchronousCloseMonitor.cpp b/luni/src/main/native/AsynchronousCloseMonitor.cpp index 92d5260..31cde00 100644 --- a/luni/src/main/native/AsynchronousCloseMonitor.cpp +++ b/luni/src/main/native/AsynchronousCloseMonitor.cpp @@ -35,12 +35,13 @@ static pthread_mutex_t blockedThreadListMutex = PTHREAD_MUTEX_INITIALIZER; static AsynchronousCloseMonitor* blockedThreadList = NULL; /** - * The specific signal chosen here is arbitrary. + * The specific signal chosen here is arbitrary, but bionic needs to know so that SIGRTMIN + * starts at a higher value. */ #if defined(__APPLE__) static const int BLOCKED_THREAD_SIGNAL = SIGUSR2; #else -static const int BLOCKED_THREAD_SIGNAL = SIGRTMIN + 2; +static const int BLOCKED_THREAD_SIGNAL = __SIGRTMIN + 2; #endif static void blockedThreadSignalHandler(int /*signal*/) { |