@ai-ecoverse/slicc-kernel 1.54.5 → 1.54.7

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/node.js CHANGED
@@ -12906,7 +12906,7 @@ var Launcher = class {
12906
12906
  this.processes.set(pid, handle);
12907
12907
  const { cred } = req;
12908
12908
  this.creds.set(pid, () => handle.cred?.() ?? copyCred(cred));
12909
- if (req.ppid !== void 0) this.settling.started(pid, req.ppid);
12909
+ if (req.ppid !== void 0 && this.controlsJobs(req.ppid)) this.settling.started(pid, req.ppid);
12910
12910
  this.jobs.add(pid, req.ppid, (sig) => handle.signal(sig), terminal);
12911
12911
  if (req.exec && req.ppid !== void 0) this.jobs.exec(req.ppid, pid, true);
12912
12912
  if (req.pgid !== void 0) this.jobs.join(pid, req.pgid);
@@ -13076,6 +13076,9 @@ var Launcher = class {
13076
13076
  const masks = this.processes.get(pid)?.signalMasks?.();
13077
13077
  return masks ? { sigIgn: masks.ignored, sigCgt: masks.caught } : {};
13078
13078
  }
13079
+ controlsJobs(pid) {
13080
+ return this.settling.isSettling(pid) || (this.ignoredBy(pid) & sigbit(SIG.TTOU)) !== 0;
13081
+ }
13079
13082
  ignoredBy(pid, fork = false) {
13080
13083
  return this.processes.get(pid)?.ignoredSignals(fork) ?? 0;
13081
13084
  }