From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Dynamic loading progress Date: Mon, 28 Sep 2015 15:30:29 -0400 Message-ID: References: <55DE75FD.8020308@cs.ucla.edu> <55F5DD8C.70506@dancol.org> <55F62C16.4000105@dancol.org> <55F64F04.9030002@dancol.org> <55F6E43E.9030502@dancol.org> <55F70C4E.8030805@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1443489111 4818 80.91.229.3 (29 Sep 2015 01:11:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 29 Sep 2015 01:11:51 +0000 (UTC) Cc: Daniel Colascione , Emacs development discussions , Paul Eggert , =?windows-1252?Q?Aur=E9lien?= Aptel , Tom Tromey , Stephen Leake To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 29 03:11:44 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZgjSJ-00023Z-Kg for ged-emacs-devel@m.gmane.org; Tue, 29 Sep 2015 03:11:43 +0200 Original-Received: from localhost ([::1]:43506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZgjSI-0003lD-Qe for ged-emacs-devel@m.gmane.org; Mon, 28 Sep 2015 21:11:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zge8B-0001gN-NV for emacs-devel@gnu.org; Mon, 28 Sep 2015 15:30:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zge87-0002Su-8G for emacs-devel@gnu.org; Mon, 28 Sep 2015 15:30:35 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:21006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zge87-0002S9-4m for emacs-devel@gnu.org; Mon, 28 Sep 2015 15:30:31 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CtCwA731xV/wihxEVcgxCEAsEMCYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBViMFCwsOJhIUGA0kiDcIzyMBAQEHAiCLOoUFB4QtBbM/gUUjhBQigngBAQE X-IPAS-Result: A0CtCwA731xV/wihxEVcgxCEAsEMCYdLBAICgTw5FAEBAQEBAQGBCkEFg10BAQMBViMFCwsOJhIUGA0kiDcIzyMBAQEHAiCLOoUFB4QtBbM/gUUjhBQigngBAQE X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="166110660" Original-Received: from 69-196-161-8.dsl.teksavvy.com (HELO pastel.home) ([69.196.161.8]) by ironport2-out.teksavvy.com with ESMTP; 28 Sep 2015 15:30:30 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 0530661769; Mon, 28 Sep 2015 15:30:29 -0400 (EDT) In-Reply-To: (Philipp Stephani's message of "Mon, 28 Sep 2015 15:35:45 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:190462 Archived-At: > Going from the safe to the unsafe direction is easy if it's really > required, but going the other direction is hard. You have it backward: it's easy to add a wrapper that catches signals, but it's *impossible* to "uncatch" a signal that was caught (you can at best re-throw that signal, which is a close-enough approximation in many cases, but is still not the same). > I'd suggest to only implement the safe version for now and only add > the unsafe version if there's some data that shows it's required. The only version that is required is the one that lets signals walk up the stack freely. I'm not opposed to also providing a "safe" version that catches signals and turns them into something else, but the other one is indispensable. Stefan