From: Rich Felker Date: Sun, 22 Jun 2014 04:39:03 +0000 (-0400) Subject: add __sysv_signal abi-compat alias for the signal function X-Git-Tag: v1.1.3~6 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6ce1fade494c98414523568989fc7adea87f3402;p=oweals%2Fmusl.git add __sysv_signal abi-compat alias for the signal function it should be noted that the "real" __sysv_signal, which we do not implement, is semantically different from signal. references to __sysv_signal arise in code built against glibc under certain combinations of feature test macros, and are almost surely unintentional since the legacy sysv signal behavior has fundamental race conditions that cannot be worked around and which make it impossible to use safely. --- diff --git a/src/signal/signal.c b/src/signal/signal.c index c0f063ed..29e03c88 100644 --- a/src/signal/signal.c +++ b/src/signal/signal.c @@ -13,3 +13,4 @@ void (*signal(int sig, void (*func)(int)))(int) } weak_alias(signal, bsd_signal); +weak_alias(signal, __sysv_signal);