@Deprecated public final class POSIXSignalHandler extends Object
This class permits the use of an AsyncEventHandler to react on the occurrence of POSIX signals.
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.
POSIX.1-2001 added added a range of realtime signals, ranged from
SIGRTMIN
and SIGRTMAX
.
Since RTSJ2, the methods addHandler(int, javax.realtime.AsyncEventHandler)
, removeHandler(int, javax.realtime.AsyncEventHandler)
,
and setHandler(int, javax.realtime.AsyncEventHandler)
require extra permissions. respectively
POSIXPermission.handle
, POSIXPermission.handle
, and
POSIXPermission.override
, as well as TaskPermission.control
,
TaskPermission.override
, and TaskPermission.handle
.
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.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
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.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGHUP
Deprecated.
Hangup (POSIX).
|
static int |
SIGILL
Deprecated.
illegal instruction (ANSI)
|
static int |
SIGINT
Deprecated.
interrupt (ANSI)
|
static int |
SIGIO
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGIOT
Deprecated.
IOT instruction (4.2 BSD), optional signal.
|
static int |
SIGKILL
Deprecated.
Kill, unblockable (POSIX).
|
static int |
SIGLOST
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGLWP
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGPIPE
Deprecated.
Broken pipe (POSIX).
|
static int |
SIGPOLL
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGPROF
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGPWR
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGQUIT
Deprecated.
quit (POSIX)
|
static int |
SIGSEGV
Deprecated.
Segmentation violation (ANSI).
|
static int |
SIGSTKFLT
Deprecated.
Termination (Linux).
|
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.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
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.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGUSR1
Deprecated.
User-defined signal 1 (POSIX).
|
static int |
SIGUSR2
Deprecated.
User-defined signal 2 (POSIX).
|
static int |
SIGVTALRM
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGWAITING
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGWINCH
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGXCPU
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGXFSZ
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
Modifier and Type | Method and Description |
---|---|
static void |
addHandler(int signal_id,
AsyncEventHandler handler)
Deprecated.
addHandler adds the handler provided to the set of handlers that
will be released on the provided signal.
|
static void |
removeHandler(int signal_id,
AsyncEventHandler handler)
Deprecated.
removeHandler removes a handler that was added for a given signal.
|
static void |
setHandler(int signal_id,
AsyncEventHandler handler)
Deprecated.
setHandler 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_id, AsyncEventHandler handler)
IllegalArgumentException
- iff signal is not defined by any
of the constants in this class or handler is null.signal_id
- The POSIX signal as defined in the constants SIG*.handler
- the handler to be released on the given signal.public static void removeHandler(int signal_id, AsyncEventHandler handler)
IllegalArgumentException
- iff signal is not defined by any
of the constants in this class.signal_id
- The POSIX signal as defined in the constants SIG*.handler
- the handler to be removed from the given
signal. If this handler is null or has not been added to the
signal, nothing will happen.public static void setHandler(int signal_id, AsyncEventHandler handler)
IllegalArgumentException
- iff signal is not defined by any
of the constants in this class.signal_id
- 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.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2025 aicas GmbH. All Rights Reserved.