@ai-ecoverse/slicc-kernel 1.73.1 → 1.73.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.
package/dist/process-worker.js
CHANGED
|
@@ -3378,6 +3378,11 @@ function number(r) {
|
|
|
3378
3378
|
if (!r.ok) return -wasiErrno(r.errno);
|
|
3379
3379
|
return r.kind === "json" && typeof r.json === "number" ? r.json : -wasiErrno("EIO");
|
|
3380
3380
|
}
|
|
3381
|
+
function throughKernel(sig) {
|
|
3382
|
+
if (sig === 0) return false;
|
|
3383
|
+
const action = defaultAction(sig);
|
|
3384
|
+
return action === "terminate" || action === "stop";
|
|
3385
|
+
}
|
|
3381
3386
|
function restarted(issue) {
|
|
3382
3387
|
for (; ; ) {
|
|
3383
3388
|
const r = issue();
|
|
@@ -3590,7 +3595,7 @@ function createProcessKernel(deps) {
|
|
|
3590
3595
|
return status(call2({ op: "umount", target: at(target), flags }, `umount ${target}`));
|
|
3591
3596
|
},
|
|
3592
3597
|
kill(pid, sig) {
|
|
3593
|
-
if (pid === deps.pid) {
|
|
3598
|
+
if (pid === deps.pid && !throughKernel(sig)) {
|
|
3594
3599
|
if (sig !== 0) deps.raise?.(sig);
|
|
3595
3600
|
return 0;
|
|
3596
3601
|
}
|
|
@@ -3634,6 +3639,7 @@ var S_IFMT, S_IFDIR2, POLLIN2, POLLOUT2, POLLERR2, POLLHUP2, POLLNVAL, SELECT_SL
|
|
|
3634
3639
|
var init_process_children = __esm({
|
|
3635
3640
|
"src/process/process-children.ts"() {
|
|
3636
3641
|
"use strict";
|
|
3642
|
+
init_signals();
|
|
3637
3643
|
init_process_fork();
|
|
3638
3644
|
init_wasi_errno();
|
|
3639
3645
|
S_IFMT = 61440;
|