diff options
Diffstat (limited to 'lib/profile/InstrProfilingUtil.c')
-rw-r--r-- | lib/profile/InstrProfilingUtil.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/profile/InstrProfilingUtil.c b/lib/profile/InstrProfilingUtil.c index fb68f30a5..321c7192c 100644 --- a/lib/profile/InstrProfilingUtil.c +++ b/lib/profile/InstrProfilingUtil.c @@ -29,11 +29,6 @@ #include <stdlib.h> #include <string.h> -#if defined(__linux__) -#include <signal.h> -#include <sys/prctl.h> -#endif - COMPILER_RT_VISIBILITY void __llvm_profile_recursive_mkdir(char *path) { int i; @@ -224,21 +219,3 @@ COMPILER_RT_VISIBILITY const char *lprofFindLastDirSeparator(const char *Path) { #endif return Sep; } - -COMPILER_RT_VISIBILITY int lprofSuspendSigKill() { -#if defined(__linux__) - int PDeachSig = 0; - /* Temporarily suspend getting SIGKILL upon exit of the parent process. */ - if (prctl(PR_GET_PDEATHSIG, &PDeachSig) == 0 && PDeachSig == SIGKILL) - prctl(PR_SET_PDEATHSIG, 0); - return (PDeachSig == SIGKILL); -#else - return 0; -#endif -} - -COMPILER_RT_VISIBILITY void lprofRestoreSigKill() { -#if defined(__linux__) - prctl(PR_SET_PDEATHSIG, SIGKILL); -#endif -} |