Skip to content

Commit

Permalink
Reinstall GAP SIGINT handler when Julia is started
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasguts authored and fingolfin committed Sep 5, 2019
1 parent f5edc9e commit b5541bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/julia_gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "gasman.h"
#include "objects.h"
#include "plist.h"
#include "sysfiles.h"
#include "sysmem.h"
#include "system.h"
#include "vars.h"
Expand Down Expand Up @@ -744,6 +745,8 @@ void InitBags(UInt initial_size, Bag * stack_bottom, UInt stack_align)
Panic("could not read GapObj variable from Julia");
}

SyInstallAnswerIntr();

JuliaTLS = jl_get_ptls_states();
// These callbacks potentially require access to the Julia
// TLS and thus need to be installed after initialization.
Expand Down

0 comments on commit b5541bd

Please sign in to comment.