summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC/signal.cpp
diff options
context:
space:
mode:
authorJean-Baptiste Boric <jblbeurope@gmail.com>2021-08-14 00:32:19 +0200
committerAndreas Kling <kling@serenityos.org>2021-08-18 10:33:48 +0200
commitc972afbea64a164b9830aa8d4f3d2ec0e4d3d0cc (patch)
tree203c62d598054ac0fd989c7129cda288c60f839b /Userland/Libraries/LibC/signal.cpp
parent61658110816eec0a1374b46c1c5ae25d942ecef0 (diff)
downloadserenity-c972afbea64a164b9830aa8d4f3d2ec0e4d3d0cc.zip
LibC: Fix sigsetjmp and siglongjmp
Diffstat (limited to 'Userland/Libraries/LibC/signal.cpp')
-rw-r--r--Userland/Libraries/LibC/signal.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/Userland/Libraries/LibC/signal.cpp b/Userland/Libraries/LibC/signal.cpp
index 610f6d8a58..1ecfddc2bf 100644
--- a/Userland/Libraries/LibC/signal.cpp
+++ b/Userland/Libraries/LibC/signal.cpp
@@ -143,17 +143,6 @@ const char* sys_siglist[NSIG] = {
"Bad system call",
};
-int sigsetjmp(jmp_buf env, int savesigs)
-{
- if (savesigs) {
- int rc = sigprocmask(0, nullptr, &env->saved_signal_mask);
- assert(rc == 0);
- env->did_save_signal_mask = true;
- } else {
- env->did_save_signal_mask = false;
- }
- return setjmp(env);
-}
void siglongjmp(jmp_buf env, int val)
{
if (env->did_save_signal_mask) {