]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Atomize output files
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 16 Oct 2024 19:43:42 +0000 (13:43 -0600)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Wed, 16 Oct 2024 19:43:42 +0000 (13:43 -0600)
commitd07db5494d0641ceb5de3d91052949f65dece46b
treeeffbbfd3bd5ba6408e6bab18661f7d52b40699a8
parentb1447b57e93d9de9e7dd651737396476da79b8ed
Atomize output files

I feel like I need to relearn signals every time I have to interact with
them. Best get this done while the iron's hot.

1. The ROA file is first written as `<cache>/.roa`.
   The RK file is first written as `<cache>/.rk`.
2. When the validation run is done, `.roa` is renamed to `--output.roa`,
   and `.rk` becomes `--output.bgpsec`.
3. Most terminating signals unlink `.roa` and `.rk`.

Fixes #124.
src/main.c
src/output_printer.c
src/output_printer.h
src/sig.c