JDK-6439432 : (process) Access to system-specific process-related APIs
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 6
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-06-15
  • Updated: 2024-04-12
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Related Reports
Relates :  
Description
A DESCRIPTION OF THE REQUEST :
It would be really nice to be able to send signals to a process easily and tap into some of the platform specifics like shared memory, event processing, etc.

JUSTIFICATION :
  Asynchronous reading of stdin in Visual C++ is a pain and creating a socket for event handling seems heavy-handed to push events to a subprocess.

Comments
EVALUATION There are a number of related RFEs to provide access to operating-system-specific APIs. See also JSR 203. 4076796: (process) 'Process' should have a method isReady() analogous to waitFor() 4238437: (process) Stream returned from Process.getOutputStream converts LF to LF CR 4244896: (process) Provide System.getPid(), System.killProcess(String pid) 4333183: (process) Add a way to gently shutdown, as opposed to destroy, a subprocess 4447134: (process) Add Process.set{Output,Error}Stream methods 4483582: (process) java.lang.Process needs NIO channels to multiplex in/out/err 4523660: (process) Process.destroy fails to close in/out/err streams causing IOException 4734783: (process) Make exception detail strings more descriptive, and audit for EAGAIN 4801027: (process spec) Clarify need to invoke Process.destroy 4818273: (process) Process. waitfor() should have more options 4890728: (process) Can't set priority of native processes 4890847: (process) Add Process.ID and Process.waitFor(long timeout) 4914493: (process) Cannot send arbitary signals to UNIX process 4960438: (process) Need IO redirection API for subprocesses 4984865: (process) Have a version of Runtime.exec() which takes given IO streams 5074560: (process) Provide an easy way to capture external process output 6316105: (process) Add void Runtime.destroyProcess(int pid), int Runtime.getProcessStatus(int pid) 6423780: (process) need way to handle OS signals 6423785: (process) need Java equivalent of popen and system This CR should probably be closed as too vague or already covered by existing RFEs.
15-06-2006