From 9bc42c18cb922ba1586394a72e4e05ee1cc3197c Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Tue, 30 Jun 2020 16:18:09 +0000 Subject: [PATCH] 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 --- sys/compat/linux/linux_signal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/compat/linux/linux_signal.c b/sys/compat/linux/linux_signal.c index 1e01fbe69995..3393c8068a53 100644 --- a/sys/compat/linux/linux_signal.c +++ b/sys/compat/linux/linux_signal.c @@ -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;