]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
core(5): overwrite the oldest core dump
authorMariusz Zaborski <oshogbo@FreeBSD.org>
Sun, 1 Jul 2018 17:28:46 +0000 (17:28 +0000)
committerMariusz Zaborski <oshogbo@FreeBSD.org>
Sun, 1 Jul 2018 17:28:46 +0000 (17:28 +0000)
commit0dea6e3c9834badf5dbfd0d0122054eb4d736c5a
tree0fa8a2f7f35897c6634c012b79f8846aa6958d00
parent775c9076c7a8a96283795290b01dbc29dccfbbfe
core(5): overwrite the oldest core dump

The '%I' format in the kern.corefile sysctl limits the number of
core files that a process can generate to the number stored in the
debug.ncores sysctl. The '%I' format is replaced by the single digit
index. Previously, if all indexes were taken the kernel would overwrite
only a core file with the highest index in a filename.
Currently the system will create a new core file if there is a free
index or if all slots are taken it will overwrite the oldest one.

Reviewed by: kib(code), bcr (updating)
Differential Revision: https://reviews.freebsd.org/D15991
Differential Revision: https://reviews.freebsd.org/D16084
UPDATING
sys/kern/kern_sig.c