mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-07 12:40:19 +02:00
Don't run finalizers until Guile is initialized
Prevents a problem where with-exception-handler isn't defined yet by the time the first finalizer gets kicked off (it's a file port, probably one that is closed already...) * libguile/finalizers.h: * libguile/init.c (scm_i_init_guile): * libguile/finalizers.c (queue_finalizer_async): Mark maybe-unused. (scm_init_finalizers): Rework to only enable notification when Guile is finished initializing.
This commit is contained in:
parent
4f8d4e6c34
commit
17ca7a928e
3 changed files with 17 additions and 18 deletions
|
@ -51,6 +51,5 @@ SCM_INTERNAL int scm_i_print_finalizer (SCM exp, SCM port,
|
|||
scm_print_state *pstate SCM_UNUSED);
|
||||
SCM_INTERNAL void scm_register_finalizers (void);
|
||||
SCM_INTERNAL void scm_init_finalizers (void);
|
||||
SCM_INTERNAL void scm_init_finalizer_thread (void);
|
||||
|
||||
#endif /* SCM_FINALIZERS_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue