This PR fixes a segfault in the jpackage Linux launcher caused by partial 
reads/writes when transferring JVM launcher data through a pipe.

It introduced `readFully` and `writeFully` helper functions in 
`LinuxLauncher.c` to ensure complete transfer by:
- Using a `while` loop to handle partial I/O.
- Retrying on `EINTR`.

-------------

Commit messages:
 - 8380085: jpackage: handle partial pipe read/write in the Linux launcher

Changes: https://git.openjdk.org/jdk/pull/30254/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30254&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8380085
  Stats: 53 lines in 1 file changed: 42 ins; 0 del; 11 mod
  Patch: https://git.openjdk.org/jdk/pull/30254.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30254/head:pull/30254

PR: https://git.openjdk.org/jdk/pull/30254

Reply via email to