Document condition under which core files are removed

Signed-off-by: Patrick McCarty <patrick.mccarty@intel.com>
This commit is contained in:
Patrick McCarty
2017-06-26 17:14:50 -07:00
parent 577484cdb2
commit bb018a158f
+2
View File
@@ -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);
}