diff options
Diffstat (limited to 'daemon/dest_file.c')
-rw-r--r-- | daemon/dest_file.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 ); |