Hi Everyone, I've configured openvpn to write the status every 5 seconds to a status file. Looking at the code that when openvpn starts you call open()
Then every 5 seconds, the status file is truncated in status_flush. Only when you close openvpn, the file descriptor will be closed again. Hence, the file remains open all the time, but is truncated every 5 seconds. Now I would the read from the status file periodically as well in another process that is running. I can open the file just fine, the only issue that makes me incertain is the truncating of the file every 5 seconds. Currently I am looking for a safe way to read from the status file, while it is opened and truncated every 5 seconds. Any suggestions? Thanks, Reinoud.