From abcf1cdf7337fdb09e553e51a8b36216e37575d6 Mon Sep 17 00:00:00 2001 From: yaworsky Date: Thu, 17 Nov 2005 04:49:41 +0000 Subject: Described race condition. --- daemon/dest_file.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/daemon/dest_file.c b/daemon/dest_file.c index f08cedb..fb63195 100644 --- a/daemon/dest_file.c +++ b/daemon/dest_file.c @@ -421,6 +421,11 @@ static unsigned __stdcall writer_thread_proc( void* arg ) } done: + /* FIXME: possible race condition + We detach writer from destination before close file. + So if a new message has arrived and detached writer is flushing its queue + then a new instance will can not open file. + */ detach_writer_from_destination( writer ); pop_messages_from_queue( writer ); flush_coalescer( writer ); -- cgit v1.2.3