@ai-ecoverse/slicc-kernel 1.42.3 → 1.43.1
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/README.md +2 -1
- package/dist/kernel-worker.js +11 -2
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +71 -12
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +11 -2
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +71 -12
- package/dist/process-worker.js.map +2 -2
- package/package.json +3 -3
package/dist/node.js
CHANGED
|
@@ -8769,7 +8769,10 @@ var WasmProcess = class {
|
|
|
8769
8769
|
this.children.onReap = options.onReap;
|
|
8770
8770
|
}
|
|
8771
8771
|
ignores(bit) {
|
|
8772
|
-
return (
|
|
8772
|
+
return (this.signalMasks().ignored & bit) !== 0;
|
|
8773
|
+
}
|
|
8774
|
+
signalMasks() {
|
|
8775
|
+
return { ignored: this.ignored | this.inherited & ~this.caught, caught: this.caught };
|
|
8773
8776
|
}
|
|
8774
8777
|
inheritable(fork = false) {
|
|
8775
8778
|
return ((fork ? 0 : this.ignored) | this.inherited) & ~this.caught;
|
|
@@ -9650,6 +9653,7 @@ function spawnWasmProcess(opts) {
|
|
|
9650
9653
|
onState: (listener) => process2.onState(listener),
|
|
9651
9654
|
memory: () => Atomics.load(header3, SAB_I_MEMORY) * 65536,
|
|
9652
9655
|
ignoredSignals: (fork) => process2.inheritable(fork),
|
|
9656
|
+
signalMasks: () => process2.signalMasks(),
|
|
9653
9657
|
umask: () => process2.umask,
|
|
9654
9658
|
writesBack: () => opts.program.abi === "wasi" && !done4
|
|
9655
9659
|
};
|
|
@@ -11546,7 +11550,8 @@ var Launcher = class {
|
|
|
11546
11550
|
started: (this.described.get(root.pid) ?? described).started,
|
|
11547
11551
|
state: this.processes.has(member.pid) ? "S" : "Z",
|
|
11548
11552
|
memory: this.processes.get(member.pid)?.memory() ?? 0,
|
|
11549
|
-
umask: this.umaskOf(member.pid)
|
|
11553
|
+
umask: this.umaskOf(member.pid),
|
|
11554
|
+
...this.signalMasksOf(member.pid)
|
|
11550
11555
|
});
|
|
11551
11556
|
}
|
|
11552
11557
|
return listed;
|
|
@@ -11632,6 +11637,10 @@ var Launcher = class {
|
|
|
11632
11637
|
const open = [...this.openFiles].some((nodes) => nodes.writes(at)) || heldUnder(this.held, at);
|
|
11633
11638
|
if (!open) void this.mounts.commit(at).catch(() => void 0);
|
|
11634
11639
|
}
|
|
11640
|
+
signalMasksOf(pid) {
|
|
11641
|
+
const masks = this.processes.get(pid)?.signalMasks?.();
|
|
11642
|
+
return masks ? { sigIgn: masks.ignored, sigCgt: masks.caught } : {};
|
|
11643
|
+
}
|
|
11635
11644
|
ignoredBy(pid, fork = false) {
|
|
11636
11645
|
return this.processes.get(pid)?.ignoredSignals(fork) ?? 0;
|
|
11637
11646
|
}
|