Handbook
Glossary
remove-signal-handler ( handler sig -- )
Signal handlers
Prev:
add-signal-handler ( handler: ( -- ) sig -- )
Vocabulary
unix
.
signals
Inputs
handler
a
quotation
with stack effect
( -- )
sig
a signal handler
Outputs
None
Word description
Removes a signal handler for
sig
.
handler
must be the same quotation object that was passed to
add-signal-handler
. Signal constants are available in the
libc
vocabulary.
See also
add-signal-handler
Definition
USING:
assocs
kernel
namespaces
sequences
unix.signals.private
;
IN:
unix.signals
:
remove-signal-handler
( handler sig -- )
signal-handlers
get-global
at
[
remove-eq!
]
when*
drop
;