diff options
Diffstat (limited to 'share/man/man9/psignal.9')
-rw-r--r-- | share/man/man9/psignal.9 | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/share/man/man9/psignal.9 b/share/man/man9/psignal.9 index 42b0f4a..c628bc1 100644 --- a/share/man/man9/psignal.9 +++ b/share/man/man9/psignal.9 @@ -53,7 +53,8 @@ .Ft void .Fn gsignal "int pgid" "int signum" .Sh DESCRIPTION -These functions post a signal to one or more processes. The argument +These functions post a signal to one or more processes. +The argument .Fa signum common to all three functions should be in the range .Bq 1- Ns Dv NSIG . @@ -66,14 +67,16 @@ to the process represented by the process structure .Fa p . With a few exceptions noted below, the target process signal disposition is updated and is marked as runnable, so further handling of the signal is done -in the context of the target process after a context switch. Note that +in the context of the target process after a context switch. +Note that .Fn psignal does not by itself cause a context switch to happen. .Pp The target process is not marked as runnable in the following cases: .Bl -bullet -offset indent .It -The target process is sleeping uninterruptibly. The signal will be +The target process is sleeping uninterruptibly. +The signal will be noticed when the process returns from the system call or trap. .It The target process is currently ignoring the signal. @@ -114,7 +117,8 @@ pointed at by .Fa pgrp and calling .Fn psignal -as appropriate. If +as appropriate. +If .Fa pgrp is .Dv NULL @@ -133,7 +137,8 @@ then invokes .Fn pgsignal with the argument .Fa checkctty -set to zero. If +set to zero. +If .Fa pgid is zero no action is taken. .Sh SEE ALSO |