summaryrefslogtreecommitdiffstats
path: root/sys/netncp/ncp_ncp.c
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-09-30 20:48:29 +0000
committerjmallett <jmallett@FreeBSD.org>2002-09-30 20:48:29 +0000
commit7bf6052470a623708421c0b48efabd8eae1e91dc (patch)
treedadbb945e63f0871379e6b36c6050e25f154942e /sys/netncp/ncp_ncp.c
parent0f28e71fa52e856f676e2e19d41468c1aa6230b3 (diff)
downloadFreeBSD-src-7bf6052470a623708421c0b48efabd8eae1e91dc.zip
FreeBSD-src-7bf6052470a623708421c0b48efabd8eae1e91dc.tar.gz
Convert use of p_siglist and old SIG*() macros to use <sys/ksiginfo.h>
prototyped functions to get a sigset_t, and further to check for any queued signals, rather than an empty signal set, to go with the move to signal queues rather than signal sets.
Diffstat (limited to 'sys/netncp/ncp_ncp.c')
-rw-r--r--sys/netncp/ncp_ncp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netncp/ncp_ncp.c b/sys/netncp/ncp_ncp.c
index 8d86c02..a93bd61 100644
--- a/sys/netncp/ncp_ncp.c
+++ b/sys/netncp/ncp_ncp.c
@@ -42,6 +42,7 @@
#include <sys/sysctl.h>
#include <sys/mbuf.h>
#include <sys/uio.h>
+#include <sys/ksiginfo.h>
#include <netipx/ipx.h>
#include <netipx/ipx_var.h>
@@ -80,10 +81,10 @@ ncp_chkintr(struct ncp_conn *conn, struct proc *p)
if (p == NULL)
return 0;
- tmpset = p->p_siglist;
+ ksiginfo_to_sigset_t(p, &tmpset);
SIGSETNAND(tmpset, p->p_sigmask);
SIGSETNAND(tmpset, p->p_sigignore);
- if (SIGNOTEMPTY(p->p_siglist) && NCP_SIGMASK(tmpset))
+ if (signal_queued(p, 0) && NCP_SIGMASK(tmpset))
return EINTR;
return 0;
}
OpenPOWER on IntegriCloud