@ai-ecoverse/slicc-kernel 1.78.1 → 1.79.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.
@@ -10147,6 +10147,7 @@ function pidStat(info, boot) {
10147
10147
  }
10148
10148
  var sigMask = (mask = 0) => (mask >>> 1).toString(16).padStart(16, "0");
10149
10149
  var STATES = { S: "S (sleeping)", T: "T (stopped)", Z: "Z (zombie)" };
10150
+ var tagLine = (tag) => `Tag: ${tag.replaceAll("\n", "\\n").replaceAll(" ", "\\t").replaceAll("\r", "\\r")}`;
10150
10151
  function pidStatus(info) {
10151
10152
  const state = STATES[info.state];
10152
10153
  const c = info.cred ?? ROOT;
@@ -10162,6 +10163,7 @@ function pidStatus(info) {
10162
10163
  "TracerPid: 0",
10163
10164
  `Uid: ${ids(c.ruid, c.euid, c.suid)}`,
10164
10165
  `Gid: ${ids(c.rgid, c.egid, c.sgid)}`,
10166
+ ...info.tag !== void 0 ? [tagLine(info.tag)] : [],
10165
10167
  "FDSize: 64",
10166
10168
  `VmSize: ${Math.ceil(info.memory / KIB)} kB`,
10167
10169
  `VmRSS: ${Math.ceil(info.memory / KIB)} kB`,
@@ -17132,6 +17134,7 @@ var Launcher = class {
17132
17134
  const cred = this.credOf(member.pid);
17133
17135
  if (!maySee(viewer, cred)) continue;
17134
17136
  const root = rootOf(member);
17137
+ const tag = this.tagOf(member.pid) ?? this.tagOf(root.pid);
17135
17138
  listed.push({
17136
17139
  pid: root.pid,
17137
17140
  tid: member.pid,
@@ -17146,7 +17149,8 @@ var Launcher = class {
17146
17149
  ...this.childrenOf(root.pid),
17147
17150
  umask: this.umaskOf(member.pid),
17148
17151
  cred,
17149
- ...this.signalMasksOf(member.pid)
17152
+ ...this.signalMasksOf(member.pid),
17153
+ ...tag !== void 0 && maySee(viewer, cred) ? { tag } : {}
17150
17154
  });
17151
17155
  }
17152
17156
  return listed;