mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-24 07:40:52 +00:00
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
This commit is contained in:
parent
bae55c4aec
commit
28c0abcebb
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=357611
@ -26,7 +26,9 @@ auditd_stop()
|
||||
{
|
||||
|
||||
/usr/sbin/audit -t
|
||||
sleep 1
|
||||
if [ -n "$rc_pid" ]; then
|
||||
wait_for_pids $rc_pid
|
||||
fi
|
||||
}
|
||||
|
||||
load_rc_config $name
|
||||
|
Loading…
Reference in New Issue
Block a user