Open ydahhrk opened 5 months ago
Indeed the issue is that the program writes into a file while another program might be reading from it.
I recommend copying some code from OpenBSD/FreeBSD:
rename()
the temp file to the final destination 1Source: https://github.com/openbsd/src/blob/master/usr.sbin/rpki-client/output.c
These files were originally created for debugging reasons, so Fort handles them somewhat carelessly.
But
--output.roa
has turned out to be useful, so it would be nice if it were more script-friendly. It sometimes contains less information than it's supposed to, presumably while Fort is writing it.Workaround: Try
rtrclient
fromrtrlib
: