diff options
| author | Daniel Eischen <deischen@FreeBSD.org> | 2002-06-28 13:28:41 +0000 |
|---|---|---|
| committer | Daniel Eischen <deischen@FreeBSD.org> | 2002-06-28 13:28:41 +0000 |
| commit | 88127f1a62f6cff2453f306a1cb2984e6b8425cb (patch) | |
| tree | 62d632e168cc9d7923144927d82bf07c481c79ed /lib/libpthread/thread/thr_sigpending.c | |
| parent | b4e1c937c71c1b9101f94873769815e011d3df0e (diff) | |
Notes
Diffstat (limited to 'lib/libpthread/thread/thr_sigpending.c')
| -rw-r--r-- | lib/libpthread/thread/thr_sigpending.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_sigpending.c b/lib/libpthread/thread/thr_sigpending.c index 3c7efa43184a..5eaf6ff38e51 100644 --- a/lib/libpthread/thread/thr_sigpending.c +++ b/lib/libpthread/thread/thr_sigpending.c @@ -31,6 +31,9 @@ * * $FreeBSD$ */ +#include <sys/param.h> +#include <sys/types.h> +#include <sys/signalvar.h> #include <signal.h> #include <errno.h> #include <pthread.h> @@ -39,9 +42,9 @@ __weak_reference(_sigpending, sigpending); int -_sigpending(sigset_t * set) +_sigpending(sigset_t *set) { - struct pthread *curthread = _get_curthread(); + struct pthread *curthread = _get_curthread(); int ret = 0; /* Check for a null signal set pointer: */ @@ -51,6 +54,7 @@ _sigpending(sigset_t * set) } else { *set = curthread->sigpend; + SIGSETOR(*set, _process_sigpending); } /* Return the completion status: */ return (ret); |
