Vocabularyunix.signalsInputshandler | a quotation with stack effect ( -- ) |
sig | a signal number |
OutputsNone
Word descriptionAdds a signal handler for
sig. If
sig is raised, the signal handler will be run in a freshly-spawned Factor thread concurrently with any already established signal handlers for
sig. Signal constants are available in the
unix.ffi vocabulary.
NotesOnly certain signals can be handled. See
Signals that can be handled by Factor for more information. The handler quotation will be run in its own freshly-spawned thread.
See alsoremove-signal-handlerDefinition