mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-29 05:18:00 +00:00
fix building with newer glibc
Newer glibc releases have removed SIGUNUSED from bits/signum.h which breaks building criu on those systems: https://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8082d91e1c449e0cb137468b731004a5e605c8c6 SIGSYS returns the same value as SIGUNUSED and testing has shown that criu still successfully completes zdtm with this patch. Signed-off-by: Adrian Reber <areber@redhat.com> Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
ce68a85cee
commit
d77d8cc402
@ -880,7 +880,6 @@ static void zombie_prepare_signals(void)
|
||||
(1 << SIGPOLL) |\
|
||||
(1 << SIGIO) |\
|
||||
(1 << SIGSYS) |\
|
||||
(1 << SIGUNUSED)|\
|
||||
(1 << SIGSTKFLT)|\
|
||||
(1 << SIGPWR) \
|
||||
)
|
||||
|
@ -43,7 +43,7 @@ static char *decode_signal(const sigset_t *s, char *buf)
|
||||
COLLECT(SIGTERM); COLLECT(SIGSTKFLT); COLLECT(SIGCHLD); COLLECT(SIGCONT); COLLECT(SIGSTOP);
|
||||
COLLECT(SIGTSTP); COLLECT(SIGTTIN); COLLECT(SIGTTOU); COLLECT(SIGURG); COLLECT(SIGXCPU);
|
||||
COLLECT(SIGXFSZ); COLLECT(SIGVTALRM); COLLECT(SIGPROF); COLLECT(SIGWINCH); COLLECT(SIGIO);
|
||||
COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS); COLLECT(SIGUNUSED);
|
||||
COLLECT(SIGPOLL); COLLECT(SIGPWR); COLLECT(SIGSYS);
|
||||
#undef COLLECT
|
||||
|
||||
return buf;
|
||||
|
Loading…
x
Reference in New Issue
Block a user