Skip to content

Commit

Permalink
ipc: dispatch arch-specific signal mechanism
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 26, 2024
1 parent 1ba84b1 commit 90ccb5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ipc/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ void signalHandle(Thread *t) {
struct sigaction *handlers = (struct sigaction *) t->signals;
uintptr_t handler = (uintptr_t) handlers[signum].sa_handler;
int def = 0;
Thread *sender = s->sender;

free(s);

Expand All @@ -286,6 +285,8 @@ void signalHandle(Thread *t) {
terminateThread(t, -1, true);
break;
default:
t->handlingSignal = true;
platformSendSignal(s->sender, t, s->signum);
for(;;);
}
}
Expand Down

0 comments on commit 90ccb5a

Please sign in to comment.