> When `jspawnhelper` was missing on macOS, `spawnChild()` discarded the error > code from `posix_spawn()`, and the `IOException` message reported `error: 0 > (none)`. > > The patch includes the error code from `posix_spawn()` or file-action setup > in the `IOException` message. > On macOS, it also stops the launch and reports the error code if > `posix_spawn_file_actions_addinherit_np()` fails. > The old code ignored that return value. > > On macOS 26.5.1 (AArch64), `MissingJspawnhelper` failed with `error: 0` > before the fix and passed after `ProcessBuilder.start()` reported `error: 2` > `(ENOENT)`. > The ProcessBuilder jtreg suite had 27 passes, 0 failures, and 13 exclusions. > > > make exploded-test TEST=jtreg:test/jdk/java/lang/ProcessBuilder > > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai).
Lee Jiwon has updated the pull request incrementally with one additional commit since the last revision: 8396825: Clarify MissingJspawnhelper setup ------------- Changes: - all: https://git.openjdk.org/jdk/pull/33881/files - new: https://git.openjdk.org/jdk/pull/33881/files/d2a54067..7705fa80 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=33881&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=33881&range=01-02 Stats: 6 lines in 1 file changed: 0 ins; 0 del; 6 mod Patch: https://git.openjdk.org/jdk/pull/33881.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/33881/head:pull/33881 PR: https://git.openjdk.org/jdk/pull/33881
