Index: trunk/BNC/src/pppMain.cpp
===================================================================
--- trunk/BNC/src/pppMain.cpp	(revision 11052)
+++ trunk/BNC/src/pppMain.cpp	(revision 11057)
@@ -81,4 +81,11 @@
       t_pppThread* pppThread = new t_pppThread(opt);
       pppThread->start();
+      // In batch post-processing (--file replay), the data source must not
+      // start before the PPP client is connected, otherwise the data read
+      // in the meantime get lost (a varying amount, depending on thread
+      // scheduling).
+      if (BNC_CORE->mode() == t_bncCore::batchPostProcessing) {
+        pppThread->waitUntilReady();
+      }
       _pppThreads << pppThread;
       _running = true;
