From: Jan Klötzke Date: Mon, 23 Oct 2017 06:57:09 +0000 (+0200) Subject: shutdown: prevent core dumps in final shutdown stage X-Git-Tag: v237~130^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27b372c1c2cf634b865a70586cbb38f1acc772d9;p=platform%2Fupstream%2Fsystemd.git shutdown: prevent core dumps in final shutdown stage If the system is finally shutting down it makes no sense to write core dumps as the last remaining processes are terminated / killed. This is especially significant in case of a "force reboot" where all processes are hit concurrently with a SIGTERM and no orderly shutdown of processes takes place. --- diff --git a/src/core/shutdown.c b/src/core/shutdown.c index ffab4de..b1f581b 100644 --- a/src/core/shutdown.c +++ b/src/core/shutdown.c @@ -323,6 +323,9 @@ int main(int argc, char *argv[]) { if (!in_container) sync_with_progress(); + /* Prevent coredumps */ + disable_core_dumps(); + log_info("Sending SIGTERM to remaining processes..."); broadcast_signal(SIGTERM, true, true);