Darren Tucker
dffa644801
Fix comment text. From emaste at freebsd.org.
2022-11-09 08:27:47 +11:00
Darren Tucker
0f7e1eba55
Fix tracing disable on FreeBSD.
...
Some versions of FreeBSD do not support using id 0 to refer to the
current pid for procctl, so pass getpid() explicitly. From
emaste at freebsd.org.
2022-11-07 10:54:29 +11:00
Darren Tucker
4d2cbdb525
Include string.h and stdio.h for strerror.
2021-10-15 12:59:06 +11:00
Darren Tucker
fff13aaa26
Include error reason if trace disabling fails.
2021-10-15 12:43:36 +11:00
David Carlier
2d678c5e3b
Disable tracing on FreeBSD using procctl.
...
Placed at the start of platform_disable_tracing() to prevent declaration
after code errors from strict C89 compilers (in the unlikely event that
more than one method is enabled).
2021-09-09 18:13:27 +10:00
Darren Tucker
5ee3fb5aff
Use ptrace(PT_DENY_ATTACH, ..) on OS X.
2016-11-01 08:12:33 +11:00
Darren Tucker
57b4ee04ca
Move platform_disable_tracing into its own file.
...
Prevents link errors resolving the extern "options" when platform.o
gets linked into ssh-agent when building --with-pam.
2016-06-15 11:29:24 +10:00