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

Clarify java.lang.Process resource cleanup

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 25
    • core-libs

      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:
            2 Start watching this issue

              Created:
              Updated: