|
From: | Paul Eggert |
Subject: | Re: Dynamic modules: MODULE_HANDLE_SIGNALS etc. |
Date: | Sat, 28 Nov 2015 15:20:32 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |