-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 12
-
b18
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8250621 | 11.0.10-oracle | Thomas Stuefe | P4 | Resolved | Fixed | b01 |
JDK-8225107 | 11.0.5 | Thomas Stuefe | P4 | Resolved | Fixed | b01 |
jspawnhelper reports error codes back to the parent via pipe.
That write may fail. We do not check the return code. On Linux, where I test experimental posix_spawn support, gcc complains:
/shared/projects/openjdk/jdk-jdk/source/src/java.base/unix/native/jspawnhelper/jspawnhelper.c:52:5: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result]
That write may fail. We do not check the return code. On Linux, where I test experimental posix_spawn support, gcc complains:
/shared/projects/openjdk/jdk-jdk/source/src/java.base/unix/native/jspawnhelper/jspawnhelper.c:52:5: error: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Werror=unused-result]
- backported by
-
JDK-8225107 jspawnhelper: need to handle pipe write failure when sending return code
- Resolved
-
JDK-8250621 jspawnhelper: need to handle pipe write failure when sending return code
- Resolved
- duplicates
-
JDK-8222760 Build fails on - "error: ignoring return value of ‘write’
- Closed