]> git.ipfire.org Git - thirdparty/glibc.git/commit
rt: Set shm_open as a non cancellation point (BZ #18243)
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Mon, 22 Aug 2016 13:31:42 +0000 (10:31 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Thu, 15 Sep 2016 14:15:14 +0000 (11:15 -0300)
commitfbc994921b459d57b681a926780933a20745edf5
tree5439819eecf6c01b3ca526168a69e73ee6c21785
parent47677f2edc815e85d0383a89b09733e95e5d7302
rt: Set shm_open as a non cancellation point (BZ #18243)

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

Tested on x86_64 and i686.

[BZ #18243]
* rt/Makefile (test): Add tst-shm-cancel.
* rt/tst-shm-cancel.c: New file.
* sysdeps/posix/shm_open.c: Disable asynchronous cancellation.
ChangeLog
rt/Makefile
rt/tst-shm-cancel.c [new file with mode: 0644]
sysdeps/posix/shm_open.c