shithub: riscv

Download patch

ref: 41d4cecf6d55af3ee0ced4c45d34450f4501608b
parent: 151039caf055a741c69656ae9034b4829e4d6c94
author: cinap_lenrek <[email protected]>
date: Sat Mar 23 01:47:17 EDT 2019

upas/fs: release mailbox syncing lock after encountering error

--- a/sys/src/cmd/upas/fs/mbox.c
+++ b/sys/src/cmd/upas/fs/mbox.c
@@ -76,8 +76,10 @@
 	a = mb->root->subname;
 	if(rdidxfile(mb) == -2)
 		wridxfile(mb);
-	if(s = mb->sync(mb))
+	if(s = mb->sync(mb)){
+		mb->syncing = 0;
 		return s;
+	}
 	n = 0;
 	d = 0;
 	y = 0;