Skip to content

Commit

Permalink
Exit immediately on second ctrl-c
Browse files Browse the repository at this point in the history
  • Loading branch information
nickg committed Apr 7, 2023
1 parent 870909f commit dd6c14d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/jit/jit-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1475,7 +1475,8 @@ int32_t *jit_get_cover_ptr(jit_t *j, jit_value_t addr)
void jit_interrupt(jit_t *j, jit_irq_fn_t fn, void *ctx)
{
relaxed_store(&j->interrupt_ctx, ctx);
store_release(&j->interrupt, fn);
if (!atomic_cas(&j->interrupt, NULL, fn))
fatal_exit(1);
}

__attribute__((cold, noinline))
Expand Down

0 comments on commit dd6c14d

Please sign in to comment.