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

(process) Provide Process.getPid()

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b15
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Verified

      Description

      Add a facility to query the id of a process created using Runtime.exec() or the ProcessBuilder api. Important note from Alan Bateman:

      "You probably know this but a getPid and perhaps a getCurrentPid requires great care. We cannot assume
      that it can be represented by an int or long, it needs to allow for environment that might not have the notion of process as we know it, also needs consideration of environment where they may be several VMs running in the same process. So lots of wriggle room in the spec, otherwise it will not be implementable everywhere. "

        Issue Links

          Activity

          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/c2cb6fbb149e
          User: rriggs
          Date: 2014-05-27 20:43:44 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/dev/jdk/rev/c2cb6fbb149e User: rriggs Date: 2014-05-27 20:43:44 +0000
          Hide
          hgupdate HG Updates added a comment -
          URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/c2cb6fbb149e
          User: lana
          Date: 2014-05-29 05:34:48 +0000
          Show
          hgupdate HG Updates added a comment - URL: http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/c2cb6fbb149e User: lana Date: 2014-05-29 05:34:48 +0000

            People

            • Assignee:
              rriggs Roger Riggs
              Reporter:
              robm Robert Mckenna
            • Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: