From e5caf93e237a168f923a2eeb7bccaae9b9a51c30 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Thu, 11 Feb 2010 19:15:37 +0000 Subject: Commit FS#10889: detect file handles leaks in plugins and automatically close them on exit and warn the user. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24598 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware') diff --git a/firmware/export/config.h b/firmware/export/config.h index 516161191b..994397e595 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -908,5 +908,11 @@ Lyre prototype 1 */ #define STORAGE_ALIGN_MASK 0 #endif +/* This attribute can be used to enable to detection of plugin file handles leaks. + * When enabled, the plugin core will monitor open/close/creat and when the plugin exits + * will display an error message if the plugin leaked some file handles */ +#ifndef SIMULATOR +#define HAVE_PLUGIN_CHECK_OPEN_CLOSE +#endif #endif /* __CONFIG_H__ */ -- cgit v1.2.3