mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-23 21:10:29 +02:00
* gc.c (scm_init_storage): Skip registration of cleanup on systems
which lack atexit. (Is it important that cleanup is made properly? Maybe we should replace all `exit' with `scm_exit' and call cleanup there?)
This commit is contained in:
parent
d2362355d5
commit
a18bcd0e5f
1 changed files with 2 additions and 0 deletions
|
@ -1904,7 +1904,9 @@ scm_init_storage (scm_sizet init_heap_size)
|
||||||
if (!scm_port_table)
|
if (!scm_port_table)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
#ifdef HAVE_ATEXIT
|
||||||
atexit (cleanup);
|
atexit (cleanup);
|
||||||
|
#endif
|
||||||
|
|
||||||
scm_undefineds = scm_cons (SCM_UNDEFINED, SCM_EOL);
|
scm_undefineds = scm_cons (SCM_UNDEFINED, SCM_EOL);
|
||||||
SCM_SETCDR (scm_undefineds, scm_undefineds);
|
SCM_SETCDR (scm_undefineds, scm_undefineds);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue