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

RFE: Runtime.exec() with flag, whether calling process inherits handles

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 1.4.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description



      Name: nt126004 Date: 09/20/2001


      If you execute a process via java.lang.Runtime.exec(), the new process inherits
      all handles from the calling process.

      Under some circumstances, it will be necessary, that the callee does not
      inherit the handles (e.g. TCP listen ports).

      E.g.:
      1. Process A opens a TCP listener.
      2. Process A executes process B, that runs for some time.
      3. Process A fails and terminates.
      4. A watchdog restarts process A.
      5. Process A cannot open its TCP listener, since the port is still in use (by B).
      (Review ID: 132241)
      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kkladkosunw Konstantin Kladko (Inactive)
              Reporter:
              nthompsosunw Nathanael Thompson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: