nptl: Set sem_open as a non cancellation point (BZ #15765)
commit91dd866ff1801b27e1db1e14a52eb89a213627e6
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Sat, 20 Aug 2016 14:23:08 +0000 (20 11:23 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 15 Sep 2016 14:14:25 +0000 (15 11:14 -0300)
tree05093e97e9c7ba82bc6ac393f27f96b27ecf6f93
parent980d25d53e748abd3365aeec0a1ccd1316b4e6d6
nptl: Set sem_open as a non cancellation point (BZ #15765)

This patch changes sem_open to not act as a cancellation point.
Cancellation is disable at start and reenable in function exit.
It fixes BZ #15765.

Tested on x86_64 and i686.

[BZ #15765]
* nptl/Makefile (tests): Add tst-sem16.
* nptl/tst-sem16.c: New file.
* nptl/sem_open.c (sem_open): Disable asynchronous cancellation.
ChangeLog
nptl/Makefile
nptl/sem_open.c
nptl/tst-sem16.c [new file with mode: 0644]