@ai-ecoverse/slicc-kernel 1.135.6 → 1.136.0

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.
@@ -5288,12 +5288,18 @@ var init_wasi_host = __esm({
5288
5288
  if (errno2 === E.SUCCESS && disposition === SIG_IGN) this.sigmask?.discard(sig);
5289
5289
  return errno2;
5290
5290
  },
5291
- sigmask_set: (how, lo, hi, old) => this.sigmask ? this.sigmask.set(how, lo, hi, (oldLo, oldHi) => {
5292
- if (old === 0) return;
5293
- const view = mem.view();
5294
- view.setUint32(old, oldLo, true);
5295
- view.setUint32(old + 4, oldHi, true);
5296
- }) : E.NOSYS,
5291
+ sigmask_set: (how, lo, hi, old) => {
5292
+ if (!this.sigmask) return E.NOSYS;
5293
+ if (how === SIG_UNBLOCK || how === SIG_SETMASK) {
5294
+ this.signals?.unblocking(how === SIG_UNBLOCK ? lo << 1 : ~(lo << 1));
5295
+ }
5296
+ return this.sigmask.set(how, lo, hi, (oldLo, oldHi) => {
5297
+ if (old === 0) return;
5298
+ const view = mem.view();
5299
+ view.setUint32(old, oldLo, true);
5300
+ view.setUint32(old + 4, oldHi, true);
5301
+ });
5302
+ },
5297
5303
  sigmask_poll: (lo, hi, inPtr, outPtr, n, nevents) => this.sigmask ? this.maskedPoll(this.sigmask, [lo, hi], [inPtr, outPtr, n, nevents]) : E.NOSYS,
5298
5304
  sigmask_epoll_wait: (lo, hi, epfd, events, max, timeout, nevents) => this.sigmask ? this.maskedEpoll(
5299
5305
  this.sigmask,
@@ -6693,7 +6699,7 @@ var KERNEL_VERSION, OS_RELEASE;
6693
6699
  var init_version = __esm({
6694
6700
  "src/version.ts"() {
6695
6701
  "use strict";
6696
- KERNEL_VERSION = true ? "1.135.6" : "0.0.0-dev";
6702
+ KERNEL_VERSION = true ? "1.136.0" : "0.0.0-dev";
6697
6703
  OS_RELEASE = "6.0.0-slicc";
6698
6704
  }
6699
6705
  });
@@ -7572,6 +7578,7 @@ function sessionOf(r) {
7572
7578
  path: "kernel",
7573
7579
  substitutes: r.substitutes === true,
7574
7580
  verified: r.verified === true,
7581
+ verifiedBy: r.verifiedBy === "bundled" ? "bundled" : "none",
7575
7582
  protocol: r.protocol ?? "TLSv1.2",
7576
7583
  alpnProtocol: r.alpnProtocol,
7577
7584
  authorized: r.authorized === true,
@@ -15870,6 +15877,10 @@ var init_wasi_signals = __esm({
15870
15877
  nodefer = 0;
15871
15878
  running = 0;
15872
15879
  deferred = 0;
15880
+ lifted = 0;
15881
+ unblocking(bits) {
15882
+ this.lifted |= bits & this.running;
15883
+ }
15873
15884
  defaults = 0;
15874
15885
  nocldwait = false;
15875
15886
  fallBack;
@@ -15940,15 +15951,18 @@ var init_wasi_signals = __esm({
15940
15951
  return;
15941
15952
  }
15942
15953
  const bit = sigbit(sig);
15943
- if ((this.running & bit) !== 0 && (this.nodefer & bit) === 0) {
15954
+ if ((this.running & bit) !== 0 && ((this.nodefer | this.lifted) & bit) === 0) {
15944
15955
  this.deferred |= bit;
15945
15956
  return;
15946
15957
  }
15958
+ const outer = { running: this.running & bit, lifted: this.lifted & bit };
15947
15959
  this.running |= bit;
15960
+ this.lifted &= ~bit;
15948
15961
  try {
15949
15962
  this.run(handler, sig);
15950
15963
  } finally {
15951
- this.running &= ~bit;
15964
+ this.running = this.running & ~bit | outer.running;
15965
+ this.lifted = this.lifted & ~bit | outer.lifted;
15952
15966
  }
15953
15967
  if ((this.deferred & bit) === 0) return;
15954
15968
  this.deferred &= ~bit;