diff options
author | Amaury Pouly <pamaury@rockbox.org> | 2010-02-11 19:15:37 +0000 |
---|---|---|
committer | Amaury Pouly <pamaury@rockbox.org> | 2010-02-11 19:15:37 +0000 |
commit | e5caf93e237a168f923a2eeb7bccaae9b9a51c30 (patch) | |
tree | 465678c398f728181f1749ffb2c872f954798462 /firmware | |
parent | 552a54d87ffceb20eff1b206832cd10ad3677a24 (diff) | |
download | rockbox-e5caf93e237a168f923a2eeb7bccaae9b9a51c30.tar.gz rockbox-e5caf93e237a168f923a2eeb7bccaae9b9a51c30.zip |
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
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/export/config.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ | |||
908 | #define STORAGE_ALIGN_MASK 0 | 908 | #define STORAGE_ALIGN_MASK 0 |
909 | #endif | 909 | #endif |
910 | 910 | ||
911 | /* This attribute can be used to enable to detection of plugin file handles leaks. | ||
912 | * When enabled, the plugin core will monitor open/close/creat and when the plugin exits | ||
913 | * will display an error message if the plugin leaked some file handles */ | ||
914 | #ifndef SIMULATOR | ||
915 | #define HAVE_PLUGIN_CHECK_OPEN_CLOSE | ||
916 | #endif | ||
911 | 917 | ||
912 | #endif /* __CONFIG_H__ */ | 918 | #endif /* __CONFIG_H__ */ |