Skip to content

Commit

Permalink
servers: use thread's memory context in mmap() handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jewelcodes committed Nov 30, 2024
1 parent 66dca0d commit 7016112
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/servers/syscalls.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ void handleSyscallResponse(const SyscallHeader *hdr) {
if(hdr->header.status) break;

MmapCommand *mmapcmd = (MmapCommand *) hdr;
threadUseContext(req->thread->tid);
mmapHandle(mmapcmd, req);
break;
}

platformSetContextStatus(req->thread->context, req->ret);
Expand Down

0 comments on commit 7016112

Please sign in to comment.