Beim restarten über's Service-Menü leakt neutrino Filedeskriptoren.
Code: Alles auswählen
RCS file: /cvs/tuxbox/apps/tuxbox/neutrino/src/neutrino.cpp,v
retrieving revision 1.872
diff -u -p -r1.872 neutrino.cpp
--- a/apps/tuxbox/neutrino/src/neutrino.cpp     6 Sep 2007 23:08:18 -0000       1.872
+++ b/apps/tuxbox/neutrino/src/neutrino.cpp     30 Sep 2007 11:59:55 -0000
@@ -3692,5 +3692,16 @@ int main(int argc, char **argv)
        tzset();
        initGlobals();
+
+       char * buf = (char*)malloc(64);
+       int count;
+       if (buf && (count = readlink("/proc/self/exe", buf, 63)) >= 0) {
+               buf[count] = '\0';
+               printf("starting %s\n", buf);
+               free(buf);
+       }
+       for (int i = 3; i < 256; i++)
+               close(i);
+
        return CNeutrinoApp::getInstance()->run(argc, argv);
 }
 Wenn Du Dir jetzt keinen Account für es CVS holst, bekommst Du mit mir ein Problem...
  Wenn Du Dir jetzt keinen Account für es CVS holst, bekommst Du mit mir ein Problem...  