]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
auditd_stop: wait_for_pids instead of sleeping
authorRyan Libby <rlibby@FreeBSD.org>
Thu, 6 Feb 2020 08:32:30 +0000 (08:32 +0000)
committerRyan Libby <rlibby@FreeBSD.org>
Thu, 6 Feb 2020 08:32:30 +0000 (08:32 +0000)
commit28c0abcebb556bb4610adc1296f451648baf4940
tree90e86d1ebdc4f1f386dfb504164934552148d3f6
parentbae55c4aec16244150642c821aecc05878912a83
auditd_stop: wait_for_pids instead of sleeping

It's faster and more reliable to wait_for_pids than to sleep 1.

cem@ suggested just to remove auditd_stop() and use the rc.subr default
stop action (SIGTERM instead of audit -t), which has a built-in
wait_for_pids.  That may be a better solution.

Discussed with: cem
Reviewed by: asomers
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D23223
libexec/rc/rc.d/auditd