sigaction.2: RETURN VALUE: mention that 'errno' is set on error

Reported-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2013-04-19 08:36:42 +02:00
parent 716c8c3f00
commit de86e93c28
1 changed files with 4 additions and 2 deletions

View File

@ -44,7 +44,7 @@
.\" 2010-06-11 Andi Kleen, add hwpoison signal extensions .\" 2010-06-11 Andi Kleen, add hwpoison signal extensions
.\" 2010-06-11 mtk, improvements to discussion of various siginfo_t fields. .\" 2010-06-11 mtk, improvements to discussion of various siginfo_t fields.
.\" .\"
.TH SIGACTION 2 2013-02-12 "Linux" "Linux Programmer's Manual" .TH SIGACTION 2 2013-04-19 "Linux" "Linux Programmer's Manual"
.SH NAME .SH NAME
sigaction \- examine and change a signal action sigaction \- examine and change a signal action
.SH SYNOPSIS .SH SYNOPSIS
@ -659,7 +659,9 @@ device disconnected
.RE .RE
.SH RETURN VALUE .SH RETURN VALUE
.BR sigaction () .BR sigaction ()
returns 0 on success and \-1 on error. returns 0 on success; on error, \-1 is returned, and
.I errno
is set to indicate the error.
.SH ERRORS .SH ERRORS
.TP .TP
.B EFAULT .B EFAULT