@Deprecated
public final class POSIXSignalHandler
extends java.lang.Object
On systems that support POSIX signals fully, the 13 signals required by POSIX will be supported. Any further signals defined in this class may be supported by the system. On systems that do not support POSIX signals, even the 13 standard signals may never be fired.
Modifier and Type | Field and Description |
---|---|
static int |
SIGABRT
Deprecated.
Abort (ANSI).
|
static int |
SIGALRM
Deprecated.
Alarm clock (POSIX).
|
static int |
SIGBUS
Deprecated.
BUS error (4.2 BSD), optional signal.
|
static int |
SIGCANCEL
Deprecated.
|
static int |
SIGCHLD
Deprecated.
Child status has changed (POSIX).
|
static int |
SIGCLD
Deprecated.
Same as SIGCHLD (System V), optional signal.
|
static int |
SIGCONT
Deprecated.
Continue (POSIX), optional signal.
|
static int |
SIGEMT
Deprecated.
EMT instruction, optional signal.
|
static int |
SIGFPE
Deprecated.
floating point exception
|
static int |
SIGFREEZE
Deprecated.
|
static int |
SIGHUP
Deprecated.
Hangup (POSIX).
|
static int |
SIGILL
Deprecated.
illegal instruction (ANSI)
|
static int |
SIGINT
Deprecated.
interrupt (ANSI)
|
static int |
SIGIO
Deprecated.
|
static int |
SIGIOT
Deprecated.
IOT instruction (4.2 BSD), optional signal.
|
static int |
SIGKILL
Deprecated.
Kill, unblockable (POSIX).
|
static int |
SIGLOST
Deprecated.
|
static int |
SIGLWP
Deprecated.
|
static int |
SIGPIPE
Deprecated.
Broken pipe (POSIX).
|
static int |
SIGPOLL
Deprecated.
|
static int |
SIGPROF
Deprecated.
|
static int |
SIGPWR
Deprecated.
|
static int |
SIGQUIT
Deprecated.
quit (POSIX)
|
static int |
SIGSEGV
Deprecated.
Segmentation violation (ANSI).
|
static int |
SIGSTKFLT
Deprecated.
Termination (Linux Stack Fault).
|
static int |
SIGSTOP
Deprecated.
Stop, unblockable (POSIX), optional signal.
|
static int |
SIGSYS
Deprecated.
Bad system call, optional signal.
|
static int |
SIGTERM
Deprecated.
Termination (ANSI).
|
static int |
SIGTHAW
Deprecated.
|
static int |
SIGTRAP
Deprecated.
trace trap (POSIX), optional signal.
|
static int |
SIGTSTP
Deprecated.
Keyboard stop (POSIX), optional signal.
|
static int |
SIGTTIN
Deprecated.
Background read from tty (POSIX), optional signal.
|
static int |
SIGTTOU
Deprecated.
Background write to tty (POSIX), optional signal.
|
static int |
SIGURG
Deprecated.
|
static int |
SIGUSR1
Deprecated.
User-defined signal 1 (POSIX).
|
static int |
SIGUSR2
Deprecated.
User-defined signal 2 (POSIX).
|
static int |
SIGVTALRM
Deprecated.
|
static int |
SIGWAITING
Deprecated.
|
static int |
SIGWINCH
Deprecated.
|
static int |
SIGXCPU
Deprecated.
|
static int |
SIGXFSZ
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static void |
addHandler(int signal,
AsyncEventHandler handler)
Deprecated.
Adds the handler provided to the set of handlers that
will be released on the provided signal.
|
static void |
removeHandler(int signal,
AsyncEventHandler handler)
Deprecated.
Removes a handler that was added for a given signal.
|
static void |
setHandler(int signal,
AsyncEventHandler handler)
Deprecated.
Sets the set of handlers that will be released on the provided
signal to the set with the provided handler being the single
element.
|
public static final int SIGHUP
public static final int SIGINT
public static final int SIGQUIT
public static final int SIGILL
public static final int SIGTRAP
public static final int SIGABRT
public static final int SIGBUS
public static final int SIGFPE
public static final int SIGKILL
public static final int SIGUSR1
public static final int SIGSEGV
public static final int SIGUSR2
public static final int SIGPIPE
public static final int SIGALRM
public static final int SIGTERM
public static final int SIGSTKFLT
public static final int SIGCHLD
public static final int SIGCONT
public static final int SIGSTOP
public static final int SIGTSTP
public static final int SIGTTIN
public static final int SIGTTOU
@Deprecated public static final int SIGURG
@Deprecated public static final int SIGXCPU
@Deprecated public static final int SIGXFSZ
@Deprecated public static final int SIGVTALRM
@Deprecated public static final int SIGPROF
@Deprecated public static final int SIGWINCH
@Deprecated public static final int SIGIO
@Deprecated public static final int SIGPWR
public static final int SIGSYS
public static final int SIGIOT
@Deprecated public static final int SIGPOLL
public static final int SIGCLD
public static final int SIGEMT
@Deprecated public static final int SIGLOST
@Deprecated public static final int SIGCANCEL
@Deprecated public static final int SIGFREEZE
@Deprecated public static final int SIGLWP
@Deprecated public static final int SIGTHAW
@Deprecated public static final int SIGWAITING
public static void addHandler(int signal, AsyncEventHandler handler)
signal
- The POSIX signal as defined in the constants SIG*.handler
- The handler to be released on the given signal.java.lang.IllegalArgumentException
- when signal is not defined by any
of the constants in this class or handler is null
.public static void removeHandler(int signal, AsyncEventHandler handler)
signal
- The POSIX signal as defined in the constants SIG*.handler
- The handler to be removed from the given
signal. When this handler is null
or has not been added to the
signal, nothing will happen.java.lang.IllegalArgumentException
- when signal is not defined by any
of the constants in this class.public static void setHandler(int signal, AsyncEventHandler handler)
signal
- The POSIX signal as defined in the constants SIG*.handler
- The handler to be released on the given signal,
null
to remove all handlers for the given signal.java.lang.IllegalArgumentException
- when signal is not defined by any
of the constants in this class.