process-api: ProcessBuilder and Process API module (pipe-buffer deadlock and its fixes, timeouts and process-tree kill, grandchild holding the pipe, environment/redirect/stdin, ProcessHandle, startPipeline, shell and option injection), ProcessRunner, 14 contract tests

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b3W3uHbHAmM3orhn7b
This commit is contained in:
Ankur
2026-11-26 00:48:44 +05:30
co-authored by Claude Sonnet 5.5
parent 47e4ccbefa
commit a714780bca
21 changed files with 952 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
== 1. our own process
pid > 0: true, command ends with java: true
has a parent: true
== 2. onExit() instead of a blocked thread
main thread is free; alive = true
callback: exited with 3
== 3. what ProcessHandle.Info reveals about a child
command = /usr/bin/sleep
arguments = 5
user set = true, startInstant set = true
== 4. a handle to a finished process
alive after exit: false
== 5. a real pipeline without a shell: printf | sort | uniq -c
1 a
3 b
1 c
stages: 3