@ai-ecoverse/slicc-kernel 1.26.5 → 1.26.6
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 +1 -1
- package/dist/kernel-worker.js +2 -1
- package/dist/kernel-worker.js.map +2 -2
- package/dist/node-process-worker.js +8 -1
- package/dist/node-process-worker.js.map +3 -3
- package/dist/node.js +2 -1
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +8 -1
- package/dist/process-worker.js.map +3 -3
- package/package.json +3 -2
|
@@ -3259,6 +3259,12 @@ function useProcfs(Fs, sys, pid, memory = memorySource()) {
|
|
|
3259
3259
|
return [...names];
|
|
3260
3260
|
}
|
|
3261
3261
|
};
|
|
3262
|
+
hashRemoveNode.call(Fs, self);
|
|
3263
|
+
const link = fresh(proc, "self", LINK_MODE2);
|
|
3264
|
+
const shownPid = () => String(find(procList().processes, pid, true)?.pid ?? pid);
|
|
3265
|
+
link.node_ops.readlink = shownPid;
|
|
3266
|
+
const procLookup = proc.node_ops.lookup;
|
|
3267
|
+
proc.node_ops.lookup = (parent, name) => name === "self" ? link : name === shownPid() ? self : procLookup(parent, name);
|
|
3262
3268
|
const selfOps = self.node_ops;
|
|
3263
3269
|
const selfLookup = selfOps.lookup?.bind(selfOps);
|
|
3264
3270
|
const selfReaddir = selfOps.readdir?.bind(selfOps);
|
|
@@ -3274,7 +3280,7 @@ function useProcfs(Fs, sys, pid, memory = memorySource()) {
|
|
|
3274
3280
|
readdir: (node) => pidNames(selfReaddir ? selfReaddir(node) : [".", ".."])
|
|
3275
3281
|
};
|
|
3276
3282
|
}
|
|
3277
|
-
var HZ, DIR_MODE2, FILE_MODE, ENOENT, ESRCH, EINVAL, UID, KIB, FALLBACK_MEMORY, PID_FILES, SYSTEM_FILES;
|
|
3283
|
+
var HZ, DIR_MODE2, FILE_MODE, LINK_MODE2, ENOENT, ESRCH, EINVAL, UID, KIB, FALLBACK_MEMORY, PID_FILES, SYSTEM_FILES;
|
|
3278
3284
|
var init_procfs = __esm({
|
|
3279
3285
|
"src/process/procfs.ts"() {
|
|
3280
3286
|
"use strict";
|
|
@@ -3282,6 +3288,7 @@ var init_procfs = __esm({
|
|
|
3282
3288
|
HZ = 100;
|
|
3283
3289
|
DIR_MODE2 = 16749;
|
|
3284
3290
|
FILE_MODE = 33060;
|
|
3291
|
+
LINK_MODE2 = 41471;
|
|
3285
3292
|
ENOENT = 44;
|
|
3286
3293
|
ESRCH = 71;
|
|
3287
3294
|
EINVAL = 28;
|