diff -r b08fe828b686 src/common/pcap-file.cc --- a/src/common/pcap-file.cc Wed Jun 02 11:14:06 2010 -0400 +++ b/src/common/pcap-file.cc Wed Jun 02 13:15:24 2010 -0700 @@ -366,6 +366,7 @@ m_file.write ((const char *)&header.m_tsUsec, sizeof(header.m_tsUsec)); m_file.write ((const char *)&header.m_inclLen, sizeof(header.m_inclLen)); m_file.write ((const char *)&header.m_origLen, sizeof(header.m_origLen)); + m_file.flush(); return inclLen; } @@ -374,6 +375,7 @@ { uint32_t inclLen = WritePacketHeader (tsSec, tsUsec, totalLen); m_file.write ((const char *)data, inclLen); + m_file.flush(); } void @@ -381,6 +383,7 @@ { uint32_t inclLen = WritePacketHeader (tsSec, tsUsec, p->GetSize ()); p->CopyData (&m_file, inclLen); + m_file.flush(); } void @@ -397,6 +400,7 @@ headerBuffer.CopyData (&m_file, toCopy); inclLen -= toCopy; p->CopyData (&m_file, inclLen); + m_file.flush(); } void