Skip to content

Commit 7c36e8b

Browse files
hellos3bcristianoc
authored andcommitted
Close the lock file after opening
1 parent 6de8e49 commit 7c36e8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rescript

+2-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,8 @@ function acquireBuild() {
204204
return false;
205205
} else {
206206
try {
207-
fs.openSync(lockFileName, "wx", 0o664);
207+
const fid = fs.openSync(lockFileName, "wx", 0o664);
208+
fs.closeSync(fid);
208209
is_building = true;
209210
} catch (err) {
210211
if (err.code === "EEXIST") {

0 commit comments

Comments
 (0)