From feb79c4e4d243a1d5ab7c1e49bfe7aa1cc78effb Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 16 Jan 2001 21:57:42 +0000 Subject: [PATCH] The bit about sigpending not detecting any errors is a lie, it can return EFAULT. PR: 24360 Submitted by: Kenneth Ingham --- lib/libc/sys/sigpending.2 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/libc/sys/sigpending.2 b/lib/libc/sys/sigpending.2 index c9d28967078e..e05d186587c2 100644 --- a/lib/libc/sys/sigpending.2 +++ b/lib/libc/sys/sigpending.2 @@ -62,9 +62,14 @@ indicates an error occurred and .Va errno is set to indicated the reason. .Sh ERRORS -The .Fn sigpending -function does not currently detect any errors. +will fail if: +.Bl -tag -width Er +.It Bq Er EFAULT +The +.Fa set +argument specified an invalid address. +.El .Sh SEE ALSO .Xr sigaction 2 , .Xr sigprocmask 2