From: Giftpflanze Date: Tue, 5 Mar 2024 14:54:38 +0000 (+0100) Subject: unix.signals: Signal constants are in the libc vocab X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=3addc36027ea13035b29d1eda0fdabd4cdc8e79c unix.signals: Signal constants are in the libc vocab --- diff --git a/basis/unix/signals/signals-docs.factor b/basis/unix/signals/signals-docs.factor index 7160377ad1..9a53594f36 100644 --- a/basis/unix/signals/signals-docs.factor +++ b/basis/unix/signals/signals-docs.factor @@ -7,14 +7,14 @@ HELP: add-signal-handler { $values { "handler" { $quotation ( -- ) } } { "sig" "a signal number" } } -{ $description "Adds a signal handler for " { $snippet "sig" } ". If " { $snippet "sig" } " is raised, the signal handler will be run in a freshly-spawned Factor thread concurrently with any already established signal handlers for " { $snippet "sig" } ". Signal constants are available in the " { $vocab-link "unix.ffi" } " vocabulary." } +{ $description "Adds a signal handler for " { $snippet "sig" } ". If " { $snippet "sig" } " is raised, the signal handler will be run in a freshly-spawned Factor thread concurrently with any already established signal handlers for " { $snippet "sig" } ". Signal constants are available in the " { $vocab-link "libc" } " vocabulary." } { $notes "Only certain signals can be handled. See " { $link "unix.signals:allowed-signals" } " for more information. The handler quotation will be run in its own freshly-spawned thread." } ; HELP: remove-signal-handler { $values { "handler" { $quotation ( -- ) } } { "sig" "a signal handler" } } -{ $description "Removes a signal handler for " { $snippet "sig" } ". " { $snippet "handler" } " must be the same quotation object that was passed to " { $link add-signal-handler } ". Signal constants are available in the " { $vocab-link "unix.ffi" } " vocabulary." } ; +{ $description "Removes a signal handler for " { $snippet "sig" } ". " { $snippet "handler" } " must be the same quotation object that was passed to " { $link add-signal-handler } ". Signal constants are available in the " { $vocab-link "libc" } " vocabulary." } ; { add-signal-handler remove-signal-handler } related-words