Skip to content

Commit

Permalink
ipc: typo in default signal handler setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 20, 2024
1 parent e0b8afc commit 43416aa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ipc/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void *signalDefaults() {
if(!ptr) return NULL;

for(int i = 0; i < MAX_SIGNAL; i++)
*ptr = (uintptr_t) SIG_DFL; // default
ptr[i] = (uintptr_t) SIG_DFL; // default

return (void *) ptr;
}
Expand Down Expand Up @@ -273,13 +273,11 @@ void signalHandle(Thread *t) {
case SIG_T:
case SIG_A:
case SIG_S:
schedLock();
terminateThread(t, -1, true);
schedRelease();
break;
default:
// TODO: execute the custom signal handler here
KERROR("TODO: execute custom signal handler\n");
KERROR("TODO: execute custom signal handler: handler = %X, def = %d\n", handler, def);
for(;;);
}
}

0 comments on commit 43416aa

Please sign in to comment.