REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 857 B
Close
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/pstree.remy/lib/tree.js
Text
Base64
const spawn = require('child_process').spawn; module.exports = function (rootPid, callback) { const pidsOfInterest = new Set([parseInt(rootPid, 10)]); var output = ''; // *nix const ps = spawn('ps', ['-A', '-o', 'ppid,pid']); ps.stdout.on('data', (data) => { output += data.toString('ascii'); }); ps.on('close', () => { try { const res = output .split('\n') .slice(1) .map((_) => _.trim()) .reduce((acc, line) => { const pids = line.split(/\s+/); const ppid = parseInt(pids[0], 10); if (pidsOfInterest.has(ppid)) { const pid = parseInt(pids[1], 10); acc.push(pid); pidsOfInterest.add(pid); } return acc; }, []); callback(null, res); } catch (e) { callback(e, null); } }); };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 3
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
index.js
800 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tree.js
857 B
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
utils.js
1.14 KB
lrw-r--r--
2026-02-03 15:06:46
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).