elua: two-stage bytecode caching
authorDaniel Kolesa <d.kolesa@samsung.com>
Thu, 6 Nov 2014 10:57:19 +0000 (10:57 +0000)
committerDaniel Kolesa <d.kolesa@samsung.com>
Thu, 6 Nov 2014 10:57:36 +0000 (10:57 +0000)
commit6b20fcdc8fdd498956e61aa9534bccccb3480763
treeb1c7ef6d0f721ae79fddfcc1cd0e26169b52fff0
parent8ceef8c6ca12b00698c7cd13394fba1de8e4c6b7
elua: two-stage bytecode caching

This unbreaks parallel builds where an elua process tries to read a bytecode
file that is currently being written. Now, we write into a temporary file first
instead and when it's written, rename.

@fix
src/bin/elua/cache.c