fix: fd leaked when reading recordings.epl
[enigma2.git] / lib / base / thread.cpp
index 08ddc1fb94b07cc33b355006947ad2eee7888e57..7a43a7bb22bf43548caa3b164a0c91edb7402539 100644 (file)
@@ -19,7 +19,7 @@ void *eThread::wrapper(void *ptr)
        pthread_cleanup_push( thread_completed, (void*)p );
        p->thread();
        pthread_exit(0);
-       pthread_cleanup_pop(0);
+       pthread_cleanup_pop(1);
        return 0;
 }
 
@@ -51,10 +51,10 @@ void eThread::run( int prio, int policy )
        }
        pthread_attr_destroy(&attr);
        usleep(1000);
-       int timeout=20;
+       int timeout=50;
        while(!alive && timeout--)
        {
-               eDebug("waiting for thread start...");
+//             eDebug("waiting for thread start...");
                usleep(1000*10);
        }
        if ( !timeout )