Fix for semaphore access by child.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 5 Jul 2016 08:28:38 +0000 (17:28 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 5 Jul 2016 08:28:38 +0000 (17:28 +0900)
commit6e69a440d2be080cf13cc3c3a72428f7e48457bb
treeaa065d7e8abd7ca0d97255fd5d802204e0a3d7aa
parente345e0133ba79ffc9d181591d349242297d44ab4
Fix for semaphore access by child.

* configure.ac (HAVE_FORK_UNSAFE_SEMAPHORE): New.
* src/npth.c (sem_init): Use NPTH_SEMAPHORE_PSHARED.
* tests/t-fork.c: New.

--

Thanks to Uldis An┼ímits.
GnuPG-bug-id: 2260
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
configure.ac
src/npth.c
tests/Makefile.am
tests/t-fork.c [new file with mode: 0644]