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

(process) need way to handle OS signals

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 5.0
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      generic
    • OS:
      generic

      Description

      There should be a way to handle operating system signals, especially UNIX's SIGINT.

      Consider a command interpreter written in Java and running on any support Java
      platform. Essentially all operating systems provide a way to interrupt the
      currently running program. A Java command interpreter needs the ability to
      catch this interrupt request and abort operations in progress, and then return
      to the main command-reading loop. Thus, handling this signal and aborting
      operations must not require closing the input device.

      Such a mechanism should also support handling POSIX-specific and other operating
      system-specific signals as much as possible. SIGTSTP and SIGCONT would be
      especially important for a command interpreter.

      Obviously any solution that effectively requires putting the terminal device into
      raw mode and emulating terminal-generated signals would be completely unacceptable.
      Any solution must integrate with the operating system's signal handling capabilities.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bshannon Bill Shannon (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: