diff options
author | Rong Xu <xur@google.com> | 2017-02-17 17:42:16 +0000 |
---|---|---|
committer | Rong Xu <xur@google.com> | 2017-02-17 17:42:16 +0000 |
commit | 0f527ee57ef6b4257a10bcc26dd68c76cfe56f0d (patch) | |
tree | 53dda4ac077ecbfcf3ea1dc643b8e4c07c28f670 /lib/profile/InstrProfilingUtil.c | |
parent | ffd1a9a8b3742310befadf697bab9fcb965ee50b (diff) |
[PGO] remove unintended debug trace. NFC
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@295469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/profile/InstrProfilingUtil.c')
-rw-r--r-- | lib/profile/InstrProfilingUtil.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/profile/InstrProfilingUtil.c b/lib/profile/InstrProfilingUtil.c index d1160411f..fb68f30a5 100644 --- a/lib/profile/InstrProfilingUtil.c +++ b/lib/profile/InstrProfilingUtil.c @@ -229,10 +229,8 @@ 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) { - fprintf(stderr, "set\n"); + if (prctl(PR_GET_PDEATHSIG, &PDeachSig) == 0 && PDeachSig == SIGKILL) prctl(PR_SET_PDEATHSIG, 0); - } return (PDeachSig == SIGKILL); #else return 0; @@ -241,7 +239,6 @@ COMPILER_RT_VISIBILITY int lprofSuspendSigKill() { COMPILER_RT_VISIBILITY void lprofRestoreSigKill() { #if defined(__linux__) - fprintf(stderr, "restore \n"); prctl(PR_SET_PDEATHSIG, SIGKILL); #endif } |