summaryrefslogtreecommitdiff
path: root/share/man/man9/psignal.9
diff options
context:
space:
mode:
authorVisa Hankala <visa@cvs.openbsd.org>2018-11-12 15:15:32 +0000
committerVisa Hankala <visa@cvs.openbsd.org>2018-11-12 15:15:32 +0000
commitb028fd2542d3cdde9180ae29d0dc7b91fa4b9459 (patch)
treed63285aed5be18e56ac9958e461a10bab1086e80 /share/man/man9/psignal.9
parentea32a425ffe724aab23a97163ddbe46ad4d5ffaf (diff)
Document pgsigio(9).
Diffstat (limited to 'share/man/man9/psignal.9')
-rw-r--r--share/man/man9/psignal.919
1 files changed, 17 insertions, 2 deletions
diff --git a/share/man/man9/psignal.9 b/share/man/man9/psignal.9
index e123db98229..dc661082c47 100644
--- a/share/man/man9/psignal.9
+++ b/share/man/man9/psignal.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: psignal.9,v 1.5 2015/09/14 15:14:55 schwarze Exp $
+.\" $OpenBSD: psignal.9,v 1.6 2018/11/12 15:15:31 visa Exp $
.\" $NetBSD: psignal.9,v 1.5 1999/03/16 00:40:47 garbled Exp $
.\"
.\" Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -28,12 +28,13 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: September 14 2015 $
+.Dd $Mdocdate: November 12 2018 $
.Dt PSIGNAL 9
.Os
.Sh NAME
.Nm psignal ,
.Nm pgsignal ,
+.Nm pgsigio ,
.Nm gsignal
.Nd post signal to a process
.Sh SYNOPSIS
@@ -42,6 +43,8 @@
.Ft void
.Fn pgsignal "struct pgrp *pgrp" "int signum" "int checkctty"
.Ft void
+.Fn pgsigio "struct sigio_ref *sir" "int sigum" "int checkctty"
+.Ft void
.Fn gsignal "int pgid" "int signum"
.Sh DESCRIPTION
These functions post a signal to one or more processes.
@@ -107,6 +110,17 @@ is
no action is taken.
.Pp
The
+.Fn pgsigio
+function posts signal number
+.Fa signum
+to the process or each member of the process group indicated by reference
+.Fa sir .
+If
+.Fa checkctty
+is non-zero, the signal will be posted only to processes that have
+a controlling terminal.
+.Pp
+The
.Fn gsignal
function posts signal number
.Fa signum
@@ -120,4 +134,5 @@ These functions are implemented in the file
.Pa sys/kern/kern_sig.c .
.Sh SEE ALSO
.Xr sigaction 2 ,
+.Xr sigio_setown 9 ,
.Xr tsleep 9