From: Mike Frysinger Date: Mon, 11 Aug 2014 05:31:09 +0000 (-0400) Subject: set_ptracer_any: add a little documentation X-Git-Tag: v4.9~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6673ac74dc998fe3070276ddb9c242f1f913c944;p=strace set_ptracer_any: add a little documentation This way I don't have to keep reading up on these options and wondering why the code isn't aborting when the call fails. * tests/set_ptracer_any.c (main): Note prctl failures are ok. --- diff --git a/tests/set_ptracer_any.c b/tests/set_ptracer_any.c index 7254a07f..dbd53372 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) {