From bb018a158ff90ce3c4dfd841e02d601a4bcc92db Mon Sep 17 00:00:00 2001 From: Patrick McCarty Date: Wed, 21 Jun 2017 10:28:58 -0700 Subject: [PATCH] Document condition under which core files are removed Signed-off-by: Patrick McCarty --- src/probes/crash_probe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/probes/crash_probe.c b/src/probes/crash_probe.c index 889b462..81ede94 100644 --- a/src/probes/crash_probe.c +++ b/src/probes/crash_probe.c @@ -699,6 +699,8 @@ fail: close(core_fd); } + // Remove the core file by default, except when the --core-file option + // is specified, or when keep_core is overridden to true. if (!core_file && !keep_core) { unlink(temp_core); }