@ai-ecoverse/slicc-kernel 1.135.1 → 1.135.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6678,7 +6678,7 @@ var KERNEL_VERSION, OS_RELEASE;
6678
6678
  var init_version = __esm({
6679
6679
  "src/version.ts"() {
6680
6680
  "use strict";
6681
- KERNEL_VERSION = true ? "1.135.1" : "0.0.0-dev";
6681
+ KERNEL_VERSION = true ? "1.135.2" : "0.0.0-dev";
6682
6682
  OS_RELEASE = "6.0.0-slicc";
6683
6683
  }
6684
6684
  });
package/dist/node.js CHANGED
@@ -6392,12 +6392,20 @@ var UnlinkedKeeper = class {
6392
6392
  const holders = now.get(path);
6393
6393
  held.set(path, holders);
6394
6394
  for (const holder of holders) moved2.push(holder.moving?.(path) ?? (() => void 0));
6395
- const at = await this.hide(path);
6396
- if (at !== void 0) hidden.set(path, at);
6395
+ const at = await this.keepAside(path);
6396
+ if (at === void 0) continue;
6397
+ hidden.set(path, at);
6397
6398
  }
6398
6399
  }
6399
6400
  } catch (err) {
6401
+ for (const [path, at] of hidden) {
6402
+ await this.serial(async () => {
6403
+ await Promise.allSettled([this.fs.rename(at, path)]);
6404
+ this.unlinkedName(at);
6405
+ });
6406
+ }
6400
6407
  for (const settle of moved2) settle();
6408
+ for (const release of releases) release();
6401
6409
  throw err;
6402
6410
  }
6403
6411
  sealed();
@@ -6431,6 +6439,17 @@ var UnlinkedKeeper = class {
6431
6439
  }
6432
6440
  };
6433
6441
  }
6442
+ async keepAside(path) {
6443
+ const at = await this.hide(path) ?? await this.hide(path);
6444
+ if (at !== void 0 || !await this.present(path)) return at;
6445
+ throw fsError("EBUSY", `${path}: open, and it could not be kept aside`);
6446
+ }
6447
+ present(path) {
6448
+ return this.fs.lstat(path).then(
6449
+ () => true,
6450
+ (err) => err?.code !== "ENOENT" && err?.code !== "ENOTDIR"
6451
+ );
6452
+ }
6434
6453
  keptFile(hidden, entry) {
6435
6454
  return {
6436
6455
  hidden,
@@ -7467,7 +7486,7 @@ function satisfies(version, range2) {
7467
7486
  }
7468
7487
 
7469
7488
  // src/version.ts
7470
- var KERNEL_VERSION = true ? "1.135.1" : "0.0.0-dev";
7489
+ var KERNEL_VERSION = true ? "1.135.2" : "0.0.0-dev";
7471
7490
  var OS_RELEASE = "6.0.0-slicc";
7472
7491
  function procVersion() {
7473
7492
  return `Linux version ${OS_RELEASE} (slicc-kernel ${KERNEL_VERSION}) #1 SMP PREEMPT_DYNAMIC