From 42439bc6e35eef7c3cc905c60b5924c200b49ec8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 12 Nov 2022 17:54:24 -0500 Subject: Use zix_file_lock() --- src/state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/state.c') 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); -- cgit v1.2.1