freebsd-dev/usr.sbin/periodic
Alan Somers a9ff79e3bb periodic: fix anticongestion for scripts run after security
Revision 316342, which introduced the anticongestion feature, failed to
consider that the periodic scripts are executed by a recursive invocation of
periodic.  The recursive invocation wrongly cleaned up a temporary file that
should've been cleaned up only by the original invocation.  The result is
that if the first script that requests an anticongestion sleep runs after
the security scripts, the sleep won't happen.

Fix this bug by delaying cleanup until the end of the original invocation.

PR:		236564
Submitted by:	Yasuhiro KIMURA <yasu@utahime.org>
Reviewed by:	imp
MFC after:	1 month
2019-08-18 17:12:06 +00:00
..
etc Eliminate spurious periodic.daily error message for rotating accounting log. 2019-07-07 17:15:45 +00:00
Makefile Move defaults/periodic.conf back to a config file. 2018-09-02 15:53:56 +00:00
Makefile.depend
periodic.8
periodic.conf Move all periodic related config and scripts to usr.sbin/periodic/ 2018-08-11 17:11:08 +00:00
periodic.sh periodic: fix anticongestion for scripts run after security 2019-08-18 17:12:06 +00:00