Skip to content

add getProcessAncestry - #14

Merged
43081j merged 6 commits into
tinylibs:mainfrom
roman-psc:process-ancestry
Oct 20, 2026
Merged

43081j merged 6 commits into
tinylibs:mainfrom
roman-psc:process-ancestry

Conversation

@roman-psc

Copy link
Copy Markdown
Contributor

replaces process-ancestry package

Comment thread src/main.ts Outdated
@43081j
43081j merged commit 432a7b0 into tinylibs:main Oct 20, 2026
4 checks passed
@43081j

43081j commented Oct 20, 2026

Copy link
Copy Markdown
Member

FYI I made a couple of changes:

  1. The root is included now and wasn't before
  2. Testing a non-existent pid uses the same pattern as the other tests: spawn, kill, use the killed pid
  3. Only check pid === 4 on windows
  4. Remove the pid === ppid check since the ancestry.includes check already caught it

@roman-psc
roman-psc deleted the process-ancestry branch October 21, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants