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

(process) Process.destroy closes streams unconditionally

XMLWordPrintable

      Process.destroy() on Unix closes the streams to the child process immediately. For a process that handles SIGTERM this cuts off communication via the streams even though the process may not terminate.
      The closing of the streams, causes SIGPIPE in the child and it may terminate (though not because of SIGTERM).

      The behavior closing the streams immediately upon calling destroy() is long standing and should be documented as implementation specific.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: