diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-10-05 05:11:32 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-10-10 09:22:58 +0000 |
commit | aa90eb737dcf80ba1d4342250ab738861d57676e (patch) | |
tree | 3b675c3af9eb1ce57262356280a8aec71c323abb /share/man/man5 | |
parent | a224fd29c99d30ee7172f3bafc15b7d221d32d1f (diff) |
Make core dump writes interruptible with SIGKILL
(cherry picked from commit b5cadc643e853fa4cb23e5315e6f40bf9979a9c0)
Diffstat (limited to 'share/man/man5')
-rw-r--r-- | share/man/man5/core.5 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/share/man/man5/core.5 b/share/man/man5/core.5 index d176548d1570..0af1b2b7e8bf 100644 --- a/share/man/man5/core.5 +++ b/share/man/man5/core.5 @@ -28,7 +28,7 @@ .\" @(#)core.5 8.3 (Berkeley) 12/11/93 .\" $FreeBSD$ .\" -.Dd August 2, 2020 +.Dd October 5, 2021 .Dt CORE 5 .Os .Sh NAME @@ -57,6 +57,20 @@ The maximum size of a core file is limited by the limit. Files which would be larger than the limit are not created. .Pp +With a large limit, a process that had mapped a very large, +and perhaps sparsely populated, virtual memory region, could take +a very long time to create core dumps. +The system ignores all signals sent to a process writing a core file, except +.Dv SIGKILL +which terminates the writing and causes immediate exit of the process. +The behavior of +.Dv SIGKILL +can be disabled by setting tunable +.Xr sysctl 8 +variable +.Va kern.core_dump_can_intr +to zero. +.Pp The name of the file is controlled via the .Xr sysctl 8 variable |