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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 1.4.0
    • Component/s: 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)
      ======================================================================

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: