JDK-4914493 : (process) Cannot send arbitary signals to UNIX process
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Resolved
  • Resolution: Won't Fix
  • OS: linux
  • CPU: x86
  • Submitted: 2003-08-28
  • Updated: 2016-05-19
  • Resolved: 2016-05-19
Related Reports
Relates :  
Description

Name: rmT116609			Date: 08/28/2003


A DESCRIPTION OF THE REQUEST :
There is no way to send a UNIX signal to a spawned process.

We are happy with taking the Process object and casting it to a UNIXProcess (in unix-specific code) and using JNI to actually do the signal firing, but even this is not possible as the pid field is private to UNIXProcess.

Could please make the useful fields non-private or supply accessor methods.


JUSTIFICATION :
The ability to send signals to processes is very useful.  We recognise the fact that we are doing non-"Java" programming but at times this is what is required.  The JDK should not stop us from doing what we want, but make it possible.
(Incident Review ID: 199560) 
======================================================================

Comments
Low level signals are not appropriate for use by java applications.
19-05-2016