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

Clarify java.lang.Process resource cleanup

XMLWordPrintable

    • b06

        Processes started from ProcessBuilder use platform resources for the process itself and to communicate between the invoking Java runtime and the launched process. The resources include file descriptors on Linux and handles on Windows for pipes and files used for input and output.

        A robust application using Process needs to know how to use the API under both normal and exception conditions and how to cleanup to free resources.
        The responsibility of the application should be clear in the javadoc including any need to close streams, files, and handle a process that is unresponsive.

              rriggs Roger Riggs
              rriggs Roger Riggs
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: