-
Enhancement
-
Resolution: Fixed
-
P3
-
None
-
b15
-
generic
-
generic
-
Verified
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. "
"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. "
- duplicates
-
JDK-4890847 (process) Add Process.ID and Process.waitFor(long timeout)
-
- Closed
-
- relates to
-
JDK-8003490 (process) Provide Process.getCurrentPid() to get identifier of current process
-
- Resolved
-
-
JDK-8044122 MBean access to the PID
-
- Resolved
-
-
JDK-4244896 (process) Provide Process.waitFor(timeout), Process.destroyForcibly() and Process.isAlive()
-
- Closed
-
-
JDK-6447323 (process) Native OS process information and control
-
- Closed
-
-
JDK-4890847 (process) Add Process.ID and Process.waitFor(long timeout)
-
- Closed
-
(1 relates to)