summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/set_ptracer_any.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/set_ptracer_any.c b/tests/set_ptracer_any.c
index 7254a07fb..dbd533725 100644
--- a/tests/set_ptracer_any.c
+++ b/tests/set_ptracer_any.c
@@ -12,6 +12,8 @@ int main(int argc, char **argv)
if (argc < 2)
return 99;
#if defined HAVE_PRCTL && defined PR_SET_PTRACER && defined PR_SET_PTRACER_ANY
+ /* Turn off restrictions on tracing if applicable. If the options
+ * aren't available on this system, that's OK too. */
(void) prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY);
#endif
if (write(1, "\n", 1) != 1) {