[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Atomic renderers
- Subject: Re: Atomic renderers
- From: Chris Warburton
- Date: Thu, 20 Jul 2017 15:11:15 +0100
- In-reply-to: <d4012185b965dff0-0-artemis@nixos>
- References: <d4012185b965dff0-0-artemis@nixos>
We only use `render_page` in one place, with a `DEST` argument which is
the output filename. That gets written to, read back, etc. in a highly
non-atomic way.
I've now changed that so we give a temp filename as `DEST`, then we
check if it's empty (error if so), and finally we move it (presumably)
atomically into the place of `$out`.