mirror of
https://github.com/louisrubet/rpn
synced 2024-12-28 09:58:52 +01:00
#155: tried to contain sig segv
This commit is contained in:
parent
2572544fef
commit
78f7695109
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
static void segv_handler(int sig, siginfo_t* siginfo, void* context)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Internal error\n");
|
fprintf(stderr, "Internal error\n");
|
||||||
|
s_prog_to_interrupt->stop();
|
||||||
|
s_prog_to_interrupt = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void catch_signals(program* prog)
|
static void catch_signals(program* prog)
|
||||||
|
|
Loading…
Reference in a new issue