Make linux(4) ignore SA_INTERRUPT. The zsh(1) binary from Bionic uses it.

MFC after:	2 weeks
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D25499
This commit is contained in:
Edward Tomasz Napierala 2020-06-30 16:18:09 +00:00
parent 518da7ace8
commit 9bc42c18cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=362804

View File

@ -102,6 +102,10 @@ linux_to_bsd_sigaction(l_sigaction_t *lsa, struct sigaction *bsa)
flags &= ~LINUX_SA_RESTART;
bsa->sa_flags |= SA_RESTART;
}
if (lsa->lsa_flags & LINUX_SA_INTERRUPT) {
flags &= ~LINUX_SA_INTERRUPT;
/* Documented to be a "historical no-op". */
}
if (lsa->lsa_flags & LINUX_SA_ONESHOT) {
flags &= ~LINUX_SA_ONESHOT;
bsa->sa_flags |= SA_RESETHAND;