fix race condition between data from another process and log writing