Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8213017

jspawnhelper: need to handle pipe write failure when sending return code

XMLWordPrintable

    • b18

        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]



              stuefe Thomas Stuefe
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: