in reply to File IO problem

If all processes use flock when reading or writting to the log file, you can use flock to check if anyone is using it.