1 .\" $NetBSD: sigqueue.2,v 1.2 2011/01/10 06:26:30 wiz Exp $
2 .\" Copyright (c) 2005 David Xu <davidxu@FreeBSD.org>
3 .\" All rights reserved.
5 .\" Redistribution and use in source and binary forms, with or without
6 .\" modification, are permitted provided that the following conditions
8 .\" 1. Redistributions of source code must retain the above copyright
9 .\" notice(s), this list of conditions and the following disclaimer as
10 .\" the first lines of this file unmodified other than the possible
11 .\" addition of one or more copyright notices.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice(s), this list of conditions and the following disclaimer in
14 .\" the documentation and/or other materials provided with the
17 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDER(S) ``AS IS'' AND ANY
18 .\" EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
20 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) BE
21 .\" LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
24 .\" BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25 .\" WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
26 .\" OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
27 .\" EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 .\" $FreeBSD: src/lib/libc/sys/sigqueue.2,v 1.8 2006/09/17 21:27:34 ru Exp $
36 .Nd queue a signal to a process (REALTIME)
42 .Fn sigqueue "pid_t pid" "int signo" "const union sigval value"
44 .Fn sigqueueinfo "pid_t pid" "const siginfo_t *info"
48 system call causes the signal specified by
50 to be sent with the value specified by
52 to the process specified by
56 is zero (the null signal), error checking is performed but
57 no signal is actually sent.
58 The null signal can be used to check the
61 The conditions required for a process to have permission to queue a
62 signal to another process are the same as for the
67 system call queues a signal to a single process specified by the
73 system call is implemented using
75 and passing the appropriate information in the
81 system call returns immediately.
83 available to queue the signal, the signal will be queued and sent to
84 the receiving process.
90 to be generated for the sending process, and if
92 is not blocked for the calling thread and if no other thread has
94 unblocked or is waiting in a
100 or at least the pending, unblocked signal will be delivered to the
101 calling thread before
104 Should any multiple pending signals in the range
108 be selected for delivery, it is the lowest numbered
110 The selection order between realtime and non-realtime signals, or
111 between multiple pending non-realtime signals, is unspecified.
121 No resources are available to queue the signal.
122 The process has already queued
124 signals that are still pending at the receiver(s),
125 or a system-wide resource limit has been exceeded.
127 The process does not have the appropriate privilege to send the signal
128 to the receiving process.
132 argument is an invalid or unsupported signal number.
147 .Xr pthread_sigmask 3
151 system call conforms to
156 realtime signal queue first appeared in