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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.4.0
    • core-libs
    • generic
    • generic



      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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: