Skip to content

Validate separate process support - #16

Closed
yohimik wants to merge 8 commits into
devfrom
upstream-pr/os-exec-posix-spawn
Closed

Validate separate process support#16
yohimik wants to merge 8 commits into
devfrom
upstream-pr/os-exec-posix-spawn

Conversation

@yohimik

@yohimik yohimik commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Validation only for tinygo-org#5634. Darwin has explicit prerequisites tinygo-org#5612 and tinygo-org#5636 which are not copied into this branch. A Darwin link failure without those prerequisites is expected. This fork PR will not be merged.

deadprogram and others added 8 commits September 2, 2026 19:53
Signed-off-by: deadprogram <ron@hybridgroup.com>
Use posix_spawn on hosted Linux and Darwin. Map process files, apply the
working directory and process group, and clear the child signal mask.
Use wait4 for process status and support Kill and Signal.

Mark Darwin pipes close-on-exec under ForkLock. Darwin also needs the
fcntl wrapper in PR tinygo-org#5612 and the libSystem symbols in PR tinygo-org#5636.
Concurrent spawn and pipe creation need the RWMutex fix in PR tinygo-org#5630.

Keep the process stubs on other targets and add process regression tests.
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Size difference with the dev branch:

Binary size difference
drivers/sizes-pr.txt has more commands than drivers/sizes-dev.txt
    tinygo build -size short -o ./build/test.hex -target=feather-rp2040 ./examples/adafruit4650
 flash                          ram
 before   after   diff          before   after   diff

@yohimik

yohimik commented Sep 5, 2026

Copy link
Copy Markdown
Owner Author

Validation is consolidated in #18, which includes the declared process prerequisites. Running this branch alone on Darwin would only reproduce the known missing dependencies. The upstream PR remains separate and open.

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.

3 participants