Browse Source

[Pal/Linux-SGX] Eliminate an unused function, unset_sighandler()

unset_sighandler() is broken. SIG_DFL can't be struct sigaction.
Delete the function instead of fixing it because it's unused.
Isaku Yamahata 4 years ago
parent
commit
f1a346985d
1 changed files with 0 additions and 16 deletions
  1. 0 16
      Pal/src/host/Linux-SGX/sgx_exception.c

+ 0 - 16
Pal/src/host/Linux-SGX/sgx_exception.c

@@ -161,22 +161,6 @@ int block_async_signals (bool block)
     return block_signals(block, async_signals, nasync_signals);
 }
 
-int unset_sighandler (int * sigs, int nsig)
-{
-    for (int i = 0 ; i < nsig ; i++) {
-#if defined(__i386__)
-        int ret = INLINE_SYSCALL(sigaction, 4, sigs[i], SIG_DFL, NULL)
-#else
-        int ret = INLINE_SYSCALL(rt_sigaction, 4, sigs[i],
-                                 (struct sigaction *) SIG_DFL, NULL,
-                                 sizeof(__sigset_t));
-#endif
-        if (IS_ERR(ret))
-            return -ERRNO(ret);
-    }
-    return 0;
-}
-
 static int get_event_num (int signum)
 {
     switch(signum) {