@ai-ecoverse/slicc-kernel 1.120.2 → 1.121.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 +8 -2
- package/dist/index.js.map +1 -1
- package/dist/kernel-worker.js +11 -3
- package/dist/kernel-worker.js.map +2 -2
- package/dist/meta.js.map +2 -2
- package/dist/node-process-worker.js +14 -5
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +11 -3
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +14 -5
- package/dist/process-worker.js.map +2 -2
- package/dist/types/fs/types.d.ts +3 -0
- package/dist/types/kernel/vfs-file.d.ts +1 -0
- package/dist/types/launcher.d.ts +1 -0
- package/package.json +1 -1
package/dist/process-worker.js
CHANGED
|
@@ -2553,7 +2553,7 @@ var KERNEL_VERSION, OS_RELEASE;
|
|
|
2553
2553
|
var init_version = __esm({
|
|
2554
2554
|
"src/version.ts"() {
|
|
2555
2555
|
"use strict";
|
|
2556
|
-
KERNEL_VERSION = true ? "1.
|
|
2556
|
+
KERNEL_VERSION = true ? "1.121.1" : "0.0.0-dev";
|
|
2557
2557
|
OS_RELEASE = "6.0.0-slicc";
|
|
2558
2558
|
}
|
|
2559
2559
|
});
|
|
@@ -4501,6 +4501,14 @@ var init_process_fork = __esm({
|
|
|
4501
4501
|
});
|
|
4502
4502
|
|
|
4503
4503
|
// src/process/process-children.ts
|
|
4504
|
+
function inheritedOf(r) {
|
|
4505
|
+
return r.ok && r.kind === "json" ? r.json & ~UNSEEDED : 0;
|
|
4506
|
+
}
|
|
4507
|
+
function inheritedSignals(transport) {
|
|
4508
|
+
return inheritedOf(
|
|
4509
|
+
transport.call({ op: "sig-inherited" }, Number.POSITIVE_INFINITY, "sig-inherited")
|
|
4510
|
+
);
|
|
4511
|
+
}
|
|
4504
4512
|
function status(r) {
|
|
4505
4513
|
return r.ok ? 0 : -wasiErrno(r.errno);
|
|
4506
4514
|
}
|
|
@@ -4719,9 +4727,8 @@ function createProcessKernel(deps) {
|
|
|
4719
4727
|
execCaptures.delete(pid);
|
|
4720
4728
|
return status2;
|
|
4721
4729
|
},
|
|
4722
|
-
pause() {
|
|
4723
|
-
|
|
4724
|
-
},
|
|
4730
|
+
pause: () => status(call2({ op: "sig-pause" }, "pause")),
|
|
4731
|
+
sigInherited: () => inheritedOf(call2({ op: "sig-inherited" }, "sig-inherited")),
|
|
4725
4732
|
mount(source, target, type, flags, data) {
|
|
4726
4733
|
const req = { op: "mount", source, target: at(target), type, flags, data };
|
|
4727
4734
|
return status(call2(req, `mount ${target}`));
|
|
@@ -4770,7 +4777,7 @@ function createProcessKernel(deps) {
|
|
|
4770
4777
|
}
|
|
4771
4778
|
};
|
|
4772
4779
|
}
|
|
4773
|
-
var S_IFMT2, S_IFDIR2, POLLIN2, POLLOUT2, POLLERR2, POLLHUP2, POLLNVAL, SELECT_SLICE_MS, WUNTRACED, WCONTINUED;
|
|
4780
|
+
var S_IFMT2, UNSEEDED, S_IFDIR2, POLLIN2, POLLOUT2, POLLERR2, POLLHUP2, POLLNVAL, SELECT_SLICE_MS, WUNTRACED, WCONTINUED;
|
|
4774
4781
|
var init_process_children = __esm({
|
|
4775
4782
|
"src/process/process-children.ts"() {
|
|
4776
4783
|
"use strict";
|
|
@@ -4779,6 +4786,7 @@ var init_process_children = __esm({
|
|
|
4779
4786
|
init_process_locks();
|
|
4780
4787
|
init_wasi_errno();
|
|
4781
4788
|
S_IFMT2 = 61440;
|
|
4789
|
+
UNSEEDED = sigbit(SIG.KILL) | sigbit(SIG.STOP) | 1;
|
|
4782
4790
|
S_IFDIR2 = 16384;
|
|
4783
4791
|
POLLIN2 = 1;
|
|
4784
4792
|
POLLOUT2 = 4;
|
|
@@ -5887,6 +5895,7 @@ async function runWasmProcess(init, port2, deps = {}) {
|
|
|
5887
5895
|
sliccPid: id.pid,
|
|
5888
5896
|
sliccPpid: id.ppid,
|
|
5889
5897
|
sliccEnv: init.env,
|
|
5898
|
+
sliccKernel: { sigInherited: () => inheritedSignals(transport) },
|
|
5890
5899
|
print: say(1),
|
|
5891
5900
|
printErr: say(2),
|
|
5892
5901
|
instantiateWasm(imports, done) {
|