@ai-ecoverse/slicc-kernel 1.17.4 → 1.17.5
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.
- package/dist/kernel-worker.js +5 -0
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node.js +6 -0
- package/dist/node.js.map +2 -2
- package/package.json +1 -1
package/dist/kernel-worker.js
CHANGED
|
@@ -6440,6 +6440,7 @@ var WasmProcess = class {
|
|
|
6440
6440
|
if (this.exited) return;
|
|
6441
6441
|
this.exited = true;
|
|
6442
6442
|
this.clearAlarm();
|
|
6443
|
+
this.interrupt.abort();
|
|
6443
6444
|
this.options.locks?.release(this.pid);
|
|
6444
6445
|
this.asyncOps.close();
|
|
6445
6446
|
for (const pid of this.children.pids()) this.options.onReap?.(pid);
|
|
@@ -8266,6 +8267,10 @@ var Launcher = class {
|
|
|
8266
8267
|
for (const nodes of this.openFiles) nodes.revoke(at);
|
|
8267
8268
|
for (const holds of this.held) holds.revoke(at);
|
|
8268
8269
|
}
|
|
8270
|
+
unmountAll() {
|
|
8271
|
+
const targets = this.mounts.list().map((m) => m.target);
|
|
8272
|
+
for (const target of targets.sort((a, b) => b.length - a.length)) this.umount(target, true);
|
|
8273
|
+
}
|
|
8269
8274
|
async permit(req) {
|
|
8270
8275
|
const policy = this.processMounts;
|
|
8271
8276
|
const allowed = typeof policy === "function" ? await policy(req) : policy;
|