From fbb26b28b94f829cad645833636b562d821e291e Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Sun, 9 Aug 2020 14:58:31 -0700 Subject: [PATCH] Kernel: Use Userspace for the sigprocmask syscall --- Kernel/Process.h | 2 +- Kernel/Syscalls/sigaction.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Kernel/Process.h b/Kernel/Process.h index 1583133f37..23f2c24b5a 100644 --- a/Kernel/Process.h +++ b/Kernel/Process.h @@ -261,7 +261,7 @@ public: int sys$dup(int oldfd); int sys$dup2(int oldfd, int newfd); int sys$sigaction(int signum, const sigaction* act, sigaction* old_act); - int sys$sigprocmask(int how, const sigset_t* set, sigset_t* old_set); + int sys$sigprocmask(int how, Userspace set, Userspace old_set); int sys$sigpending(sigset_t*); int sys$getgroups(ssize_t, Userspace); int sys$setgroups(ssize_t, Userspace); diff --git a/Kernel/Syscalls/sigaction.cpp b/Kernel/Syscalls/sigaction.cpp index c0d2b697c2..26a28c83ee 100644 --- a/Kernel/Syscalls/sigaction.cpp +++ b/Kernel/Syscalls/sigaction.cpp @@ -28,7 +28,7 @@ namespace Kernel { -int Process::sys$sigprocmask(int how, const sigset_t* set, sigset_t* old_set) +int Process::sys$sigprocmask(int how, Userspace set, Userspace old_set) { REQUIRE_PROMISE(sigaction); auto current_thread = Thread::current();