diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-08-11 01:31:09 -0400 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-08-11 17:19:17 +0000 |
commit | 6673ac74dc998fe3070276ddb9c242f1f913c944 (patch) | |
tree | 6420a430deb9bcf6b74ca1d389a426713b860424 | |
parent | 6ab2ed119aa46a5accd6d2a952033375169e727a (diff) | |
download | strace-6673ac74dc998fe3070276ddb9c242f1f913c944.tar.gz |
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.
-rw-r--r-- | tests/set_ptracer_any.c | 2 |
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) { |