]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Disable signals when calling pthread_create on QNX
authorJohannes Kliemann <kliemann@adacore.com>
Wed, 9 Jul 2025 15:40:55 +0000 (17:40 +0200)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 11 Sep 2025 09:10:47 +0000 (11:10 +0200)
commit7cbf4b85b2c98b503a7fdff507fa39fca3a09b6e
treed14daca9a73378d8c8dc9b51fd0394fe216f65c3
parent6332005e912d6a1f0ef71e993ed8e17c48e946f6
ada: Disable signals when calling pthread_create on QNX

The QNX Certified Products Defect Notification from February 2025
mentions a potential memory leak when pthread_create is interrupted by a
signal. It recommends to disable signals for this function call.

gcc/ada/ChangeLog:

* adaint.c: Add functions to disable and enable signals on QNX.
* libgnarl/s-taprop__qnx.adb (Create_Task): Disable
signals when calling pthread_create.
gcc/ada/adaint.c
gcc/ada/libgnarl/s-taprop__qnx.adb