add __sysv_signal abi-compat alias for the signal function
authorRich Felker <dalias@aerifal.cx>
Sun, 22 Jun 2014 04:39:03 +0000 (00:39 -0400)
committerRich Felker <dalias@aerifal.cx>
Sun, 22 Jun 2014 04:39:03 +0000 (00:39 -0400)
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.

src/signal/signal.c

index c0f063e..29e03c8 100644 (file)
@@ -13,3 +13,4 @@ void (*signal(int sig, void (*func)(int)))(int)
 }
 
 weak_alias(signal, bsd_signal);
+weak_alias(signal, __sysv_signal);