git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use another function to initial import mytest.py (this fixes python
[enigma2.git]
/
main
/
enigma.cpp
diff --git
a/main/enigma.cpp
b/main/enigma.cpp
index cf9120724ddb5014aa5de36f90d2796df7e57644..307edd5a9fd35fb9f0fbe322b7574a1582e2c4ed 100644
(file)
--- a/
main/enigma.cpp
+++ b/
main/enigma.cpp
@@
-239,8
+239,9
@@
int main(int argc, char **argv)
setIoPrio(IOPRIO_CLASS_BE, 3);
setIoPrio(IOPRIO_CLASS_BE, 3);
- python.execute("mytest", "__main__");
-
+// python.execute("mytest", "__main__");
+ python.execFile("/usr/lib/enigma2/python/mytest.py");
+
if (exit_code == 5) /* python crash */
{
eDebug("(exit code 5)");
if (exit_code == 5) /* python crash */
{
eDebug("(exit code 5)");
@@
-292,3
+293,10
@@
const char *getEnigmaVersionString()
#endif
"-" __DATE__;
}
#endif
"-" __DATE__;
}
+#include <malloc.h>
+
+void dump_malloc_stats(void)
+{
+ struct mallinfo mi = mallinfo();
+ eDebug("MALLOC: %d total", mi.uordblks);
+}