Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jun 2020 16:18:09 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r362804 - head/sys/compat/linux
Message-ID:  <202006301618.05UGI9xB029466@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Tue Jun 30 16:18:09 2020
New Revision: 362804
URL: https://svnweb.freebsd.org/changeset/base/362804

Log:
  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

Modified:
  head/sys/compat/linux/linux_signal.c

Modified: head/sys/compat/linux/linux_signal.c
==============================================================================
--- head/sys/compat/linux/linux_signal.c	Tue Jun 30 15:58:29 2020	(r362803)
+++ head/sys/compat/linux/linux_signal.c	Tue Jun 30 16:18:09 2020	(r362804)
@@ -102,6 +102,10 @@ linux_to_bsd_sigaction(l_sigaction_t *lsa, struct siga
 		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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006301618.05UGI9xB029466>