]> git.ipfire.org Git - thirdparty/squid.git/commit - configure.ac
Improve coredump_dir on FreeBSD and Solaris based OS (#974)
authorDavid CARLIER <devnexen@gmail.com>
Wed, 9 Feb 2022 19:38:21 +0000 (19:38 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Thu, 10 Feb 2022 20:23:05 +0000 (20:23 +0000)
commit321223fe636d87bbe4f61a9872d5685bf59dac4d
tree587368dc616334a2bf950b5f06d4ae813de9b1e1
parentb2188e4d6bce80f2f93e3f99e11f3d054f5e8b60
Improve coredump_dir on FreeBSD and Solaris based OS (#974)

Disclose that coredump_dir may also make the process "traceable",
including enabling core dumps and ptrace(2) attachments in certain
environments.

Add support for making the process traceable in FreeBSD- and
Solaris-like environments.

When Squid does not know how to make the process traceable in a given
environment, it does nothing under the assumption that the process is
already traceable enough (by default) to dump cores. Alternatively, we
could warn the admin about the lack of tracing support for that
environment. It is not clear which option is better, but we are betting
on the processes being traceable by default in most not explicitly
covered environments.
configure.ac
src/cf.data.pre
src/tools.cc