Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine
Ulm's Modula-2 Library:
SysSignal
NAME
SysSignal - UNIX signal handling
SYNOPSIS
VAR default, ignore: PROC;
VAR old: PROC;
PROCEDURE Signal(sig: SystemTypes.Sig; p: PROC) : BOOLEAN;
DESCRIPTION
Signal
installs p as signal handler for the signal sig
(see SystemTypes for the set of possible signals).
The signal handler may be a parameterless procedure
which is to be called on receiving sig,
or default (the receipt of a signal causes
program abortion then), or ignore
if the signal is to be ignored.
On success, the previous signal handler for sig
is stored into old.
DIAGNOSTICS
On failure, FALSE is returned and Errno.errno is set.
SEE ALSO
sigaction(2) |
the original interface
|
signal(5) |
an overview of all signals
|
SysKill |
delivery of signals
|
BUGS
SysSignal
provides a very restricted interface to the original system call.
Edited by: borchert, last change: 1997/02/26, revision: 1.1, converted to HTML: 1997/04/28
Modula-2 ||
Compiler & Tools ||
Library ||
Search Engine