Drop support for systems without SA_SIGINFO
Life's too short to keep worrying about ancient junk forever. Even Hurd has this now, can you imagine? (Hurd was the reason this was special-cased back in 2008)
This commit is contained in:
parent
afbb9713ce
commit
f60131dae0
|
@ -38,11 +38,7 @@ int rpmsqIsCaught(int signum)
|
|||
return sigismember(&rpmsqCaught, signum);
|
||||
}
|
||||
|
||||
#ifdef SA_SIGINFO
|
||||
void rpmsqAction(int signum, siginfo_t * info, void * context)
|
||||
#else
|
||||
void rpmsqAction(int signum)
|
||||
#endif
|
||||
{
|
||||
int save = errno;
|
||||
|
||||
|
@ -76,11 +72,7 @@ int rpmsqEnable(int signum, rpmsqAction_t handler)
|
|||
continue;
|
||||
|
||||
(void) sigemptyset (&sa.sa_mask);
|
||||
#ifdef SA_SIGINFO
|
||||
sa.sa_flags = SA_SIGINFO;
|
||||
#else
|
||||
sa.sa_flags = 0;
|
||||
#endif
|
||||
sa.sa_sigaction = (handler != NULL ? handler : tbl->handler);
|
||||
if (sigaction(tbl->signum, &sa, &tbl->oact) < 0)
|
||||
break;
|
||||
|
|
|
@ -19,11 +19,7 @@ extern "C" {
|
|||
* @param info (siginfo_t) signal info
|
||||
* @param context signal context
|
||||
*/
|
||||
#ifdef SA_SIGINFO
|
||||
typedef void (*rpmsqAction_t) (int signum, siginfo_t * info, void * context);
|
||||
#else
|
||||
typedef void (*rpmsqAction_t) (int signum);
|
||||
#endif
|
||||
|
||||
/** \ingroup rpmsq
|
||||
* Test if given signal has been caught (while signals blocked).
|
||||
|
@ -39,11 +35,7 @@ int rpmsqIsCaught(int signum);
|
|||
* @param info (siginfo_t) signal info
|
||||
* @param context signal context
|
||||
*/
|
||||
#ifdef SA_SIGINFO
|
||||
void rpmsqAction(int signum, siginfo_t * info, void * context);
|
||||
#else
|
||||
void rpmsqAction(int signum);
|
||||
#endif
|
||||
|
||||
/** \ingroup rpmsq
|
||||
* Enable or disable a signal handler.
|
||||
|
|
Loading…
Reference in New Issue