Print this page
5281 incorrect realtime signal delivery

@@ -1,12 +1,13 @@
 '\" te
+.\" Copyright (c) 2014, Ryan Zezeski.  All Rights Reserved.
 .\" Copyright (c) 2007, Sun Microsystems, Inc.  All Rights Reserved.
 .\" Copyright 1989 AT&T
 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
-.TH SIGACTION 2 "Mar 23, 2005"
+.TH SIGACTION 2 "Oct 22, 2014"
 .SH NAME
 sigaction \- detailed signal management
 .SH SYNOPSIS
 .LP
 .nf

@@ -15,11 +16,10 @@
 \fBint\fR \fBsigaction\fR(\fBint\fR \fIsig\fR, \fBconst struct sigaction *restrict\fR \fIact\fR,
      \fBstruct sigaction *restrict\fR \fIoact\fR);
 .fi
 
 .SH DESCRIPTION
-.sp
 .LP
 The \fBsigaction()\fR function allows the calling process to examine or specify
 the action to be taken on delivery of a specific signal. See
 \fBsignal.h\fR(3HEAD) for an explanation of general signal concepts.
 .sp

@@ -102,12 +102,14 @@
 .ne 2
 .na
 \fB\fBSA_NODEFER\fR\fR
 .ad
 .RS 16n
-If set and the signal is caught, the signal will not be automatically blocked
-by the kernel while it is being caught.
+If set and the signal is caught, the signal will not be automatically
+blocked by the kernel while it is being caught.  Unless the signal is
+a realtime signal.  Multiple instances of the same realtime signal
+must be delivered in FIFO order and thus are always deferred.
 .RE
 
 .sp
 .ne 2
 .na

@@ -165,17 +167,15 @@
 If set and \fIsig\fR equals \fBSIGCHLD\fR, \fBSIGCHLD\fR will not be sent to
 the calling process when its child processes stop or continue.
 .RE
 
 .SH RETURN VALUES
-.sp
 .LP
 Upon successful completion, \fB0\fR is returned. Otherwise, \fB\(mi1\fR is
 returned, \fBerrno\fR is set to indicate the error, and no new signal handler
 is installed.
 .SH ERRORS
-.sp
 .LP
 The \fBsigaction()\fR function will fail if:
 .sp
 .ne 2
 .na

@@ -186,11 +186,10 @@
 \fBSIGKILL\fR or \fBSIGSTOP\fR. In addition, if in a multithreaded process, it
 is equal to \fBSIGWAITING\fR, \fBSIGCANCEL\fR, or \fBSIGLWP\fR.
 .RE
 
 .SH ATTRIBUTES
-.sp
 .LP
 See \fBattributes\fR(5) for descriptions of the following attributes:
 .sp
 
 .sp

@@ -206,21 +205,19 @@
 _
 Standard        See \fBstandards\fR(5).
 .TE
 
 .SH SEE ALSO
-.sp
 .LP
 \fBkill\fR(1), \fBIntro\fR(2), \fBexit\fR(2), \fBfcntl\fR(2), \fBgetmsg\fR(2),
 \fBioctl\fR(2), \fBkill\fR(2), \fBpause\fR(2), \fBputmsg\fR(2), \fBread\fR(2),
 \fBsigaltstack\fR(2), \fBsigprocmask\fR(2), \fBsigsend\fR(2),
 \fBsigsuspend\fR(2), \fBwaitid\fR(2), \fBwrite\fR(2), \fBrecv\fR(3SOCKET),
 \fBsend\fR(3SOCKET), \fBsiginfo.h\fR(3HEAD), \fBsignal\fR(3C),
 \fBsignal.h\fR(3HEAD), \fBsigsetops\fR(3C), \fBucontext.h\fR(3HEAD),
 \fBwait\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
 .SH NOTES
-.sp
 .LP
 The handler routine can be declared:
 .sp
 .in +2
 .nf