#155: tried to contain sig segv

This commit is contained in:
Louis Rubet 2017-07-01 17:18:39 +02:00
parent 2572544fef
commit 78f7695109

View file

@ -65,6 +65,8 @@ static void ctrlc_handler(int sig, siginfo_t* siginfo, void* context)
static void segv_handler(int sig, siginfo_t* siginfo, void* context)
{
fprintf(stderr, "Internal error\n");
s_prog_to_interrupt->stop();
s_prog_to_interrupt = NULL;
}
static void catch_signals(program* prog)