OSDN Git Service

Make sem_wait able to return errno EINTR for sdk > 23.
authorYabin Cui <yabinc@google.com>
Mon, 25 Jan 2016 19:37:16 +0000 (11:37 -0800)
committerYabin Cui <yabinc@google.com>
Mon, 25 Jan 2016 21:44:39 +0000 (13:44 -0800)
commit892b61d3409e8cdf0e121c688737eb058d57f7ab
treeabc63e4c8e1a525bdfe15b8447d0c73825d8861e
parent7150e5a8ef7c5f5c77720db7961e170580db08ea
Make sem_wait able to return errno EINTR for sdk > 23.

Posix standards says sem_wait is interruptible by the delivery
of a signal. To keep compatiblity with old apps, only fix that
in newer sdk versions.

Bug: 26743454

Change-Id: I924cbb436658e3e0f397c922d866ece99b8241a3
libc/bionic/libc_init_dynamic.cpp
libc/bionic/libc_init_static.cpp
libc/bionic/semaphore.cpp
tests/semaphore_test.cpp