diff options
author | David Robillard <d@drobilla.net> | 2022-11-12 17:54:24 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-11-16 10:22:55 -0500 |
commit | 42439bc6e35eef7c3cc905c60b5924c200b49ec8 (patch) | |
tree | 8a924183525ea0197ce26dbc68ab7564ef72b1d9 /src/state.c | |
parent | a2d40769d25c9495edce67be67be0ac36491ce80 (diff) | |
download | lilv-42439bc6e35eef7c3cc905c60b5924c200b49ec8.tar.gz lilv-42439bc6e35eef7c3cc905c60b5924c200b49ec8.tar.bz2 lilv-42439bc6e35eef7c3cc905c60b5924c200b49ec8.zip |
Use zix_file_lock()
Diffstat (limited to 'src/state.c')
-rw-r--r-- | src/state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/state.c b/src/state.c index c0c9400..7ee8f87 100644 --- a/src/state.c +++ b/src/state.c @@ -990,9 +990,9 @@ add_state_to_manifest(LilvWorld* lworld, } SerdWriter* writer = ttl_file_writer(wfd, &manifest, &env); - lilv_flock(wfd, true, true); + zix_file_lock(wfd, ZIX_FILE_LOCK_BLOCK); sord_write(model, writer, NULL); - lilv_flock(wfd, false, true); + zix_file_unlock(wfd, ZIX_FILE_LOCK_BLOCK); serd_writer_free(writer); fclose(wfd); |