From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Dynamic modules: MODULE_HANDLE_SIGNALS etc. Date: Sat, 28 Nov 2015 15:20:32 -0800 Organization: UCLA Computer Science Department Message-ID: <565A36C0.8010808@cs.ucla.edu> References: <83mvu1x6t3.fsf@gnu.org> <565779CD.80405@cs.ucla.edu> <83io4nuc68.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1448752853 22981 80.91.229.3 (28 Nov 2015 23:20:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Nov 2015 23:20:53 +0000 (UTC) Cc: aurelien.aptel+emacs@gmail.com, tzz@lifelogs.com, dancol@dancol.org, p.stephani2@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 29 00:20:41 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 1a2onH-00044u-ST for ged-emacs-devel@m.gmane.org; Sun, 29 Nov 2015 00:20:40 +0100 Original-Received: from localhost ([::1]:34308 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2onL-0007Wj-1e for ged-emacs-devel@m.gmane.org; Sat, 28 Nov 2015 18:20:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2onI-0007Wd-NK for emacs-devel@gnu.org; Sat, 28 Nov 2015 18:20:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a2onI-00050W-1R for emacs-devel@gnu.org; Sat, 28 Nov 2015 18:20:40 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:59824) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a2onC-000505-Mc; Sat, 28 Nov 2015 18:20:34 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 088F0160DFC; Sat, 28 Nov 2015 15:20:34 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id eXXqeew0q-rq; Sat, 28 Nov 2015 15:20:33 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 54C5F160E2A; Sat, 28 Nov 2015 15:20:33 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id rRyEAxGrH5GV; Sat, 28 Nov 2015 15:20:33 -0800 (PST) Original-Received: from [192.168.1.9] (pool-100-32-155-148.lsanca.fios.verizon.net [100.32.155.148]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 2DB3F160DFC; Sat, 28 Nov 2015 15:20:33 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: <83io4nuc68.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:195495 Archived-At: Eli Zaretskii wrote: > So what are the rules here, exactly? I'd like to write them down in > the commentary to emacs-module.c, so that any future changes there > will have lower probability of breaking things. I guess the rules are that if emacs-module.c calls a function without worrying about whether it can signal, then that function shouldn't signal. I'm not trying to be flippant here, just realistic. If you like I suppose you could list in emacs-module.c the functions that you think cannot throw signals. But perhaps it'd be better to wrap all calls to such functions in a wrapper that is ordinarily a no-op, but which dumps core if a signal occurs while debugging.