From c972afbea64a164b9830aa8d4f3d2ec0e4d3d0cc Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Boric Date: Sat, 14 Aug 2021 00:32:19 +0200 Subject: LibC: Fix sigsetjmp and siglongjmp --- Userland/Libraries/LibC/signal.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'Userland/Libraries/LibC/signal.cpp') 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) { -- cgit v1.2.3