tree-wide: introduce disable_core_dumps helper and port existing users

Changes the core_pattern to prevent any core dumps by the kernel. Does
nothing if we're in a container environment as this is system wide
setting.
This commit is contained in:
Jan Klötzke
2018-01-10 10:54:40 +01:00
parent 27c34f732e
commit 9ce1759311
4 changed files with 12 additions and 2 deletions
+2
View File
@@ -191,3 +191,5 @@ int update_reboot_parameter_and_warn(const char *param);
int version(void);
int str_verscmp(const char *s1, const char *s2);
void disable_core_dumps(void);