diff options
Diffstat (limited to 'platform.c')
-rw-r--r-- | platform.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -226,8 +226,7 @@ platform_disable_tracing(int strict) { #if defined(HAVE_PRCTL) && defined(PR_SET_DUMPABLE) /* Disable ptrace on Linux without sgid bit */ - if (prctl(PR_SET_DUMPABLE, 0) != 0) - if (strict) - fatal("unable to make the process undumpable"); + if (prctl(PR_SET_DUMPABLE, 0) != 0 && strict) + fatal("unable to make the process undumpable"); #endif } |