Enable handle fork by GC

This commit is contained in:
Kirill A. Korinsky 2023-09-25 05:06:55 +00:00 committed by Daniel Kochmański
parent c402748333
commit fa9221ae6b

View file

@ -760,10 +760,12 @@ init_alloc(void)
* the begining or to the first byte.
* 3) Out of the incremental garbage collector, we only use the
* generational component.
* 4) GC should handle fork() which is used to run subprocess.
*/
GC_set_no_dls(1);
GC_set_all_interior_pointers(0);
GC_set_time_limit(GC_TIME_UNLIMITED);
GC_set_handle_fork(1);
GC_init();
#ifdef ECL_THREADS
# if GC_VERSION_MAJOR > 7 || GC_VERSION_MINOR > 1