unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Two questions about atexit cleanup in dynamic modules
@ 2017-04-07  8:51 Joris Vankerschaver
  2017-04-08 16:38 ` Philipp Stephani
  0 siblings, 1 reply; 3+ messages in thread
From: Joris Vankerschaver @ 2017-04-07  8:51 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 609 bytes --]

Hi all,

I wrote a small Emacs dynamic module to execute Python scripts in an
embedded
Python interpreter (https://github.com/jvkersch/emacs-python). The main
thing
missing is that I would like to do some cleanup in the embedded Python
interpreter when Emacs exits (close open files, deal with threads/processes,
etc). What would be the best way to do so?

1. Can I just register an atexit handler when my module starts, or will that
interfere with some Emacs internals?

2. Would it make sense to add support to the module API for a cleanup
callback
that is called when Emacs exits?

With best wishes,
Joris

[-- Attachment #2: Type: text/html, Size: 863 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-10 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-07  8:51 Two questions about atexit cleanup in dynamic modules Joris Vankerschaver
2017-04-08 16:38 ` Philipp Stephani
2017-04-10 17:36   ` Joris Vankerschaver

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).