Skip to content

Commit

Permalink
syscalls: dispatch sigreturn()
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 27, 2024
1 parent 65bdc0b commit 589e6cb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/syscalls/dispatch.c
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,11 @@ void syscallDispatchSigAction(SyscallRequest *req) {
}
}

void syscallDispatchSigreturn(SyscallRequest *req) {
sigreturn(req->thread);
req->unblock = true;
}

/* Group 4: Memory Management */

void syscallDispatchSBrk(SyscallRequest *req) {
Expand Down Expand Up @@ -599,7 +604,7 @@ void (*syscallDispatchTable[])(SyscallRequest *) = {
syscallDispatchSend, // 46 - send()
syscallDispatchKill, // 47 - kill()
syscallDispatchSigAction, // 48 - sigaction()
NULL, // 49 - sigreturn()
syscallDispatchSigreturn, // 49 - sigreturn()

/* group 4: memory management */
syscallDispatchSBrk, // 50 - sbrk()
Expand Down

0 comments on commit 589e6cb

Please sign in to comment.