diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-09-30 20:48:29 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-09-30 20:48:29 +0000 |
commit | 7bf6052470a623708421c0b48efabd8eae1e91dc (patch) | |
tree | dadbb945e63f0871379e6b36c6050e25f154942e | |
parent | 0f28e71fa52e856f676e2e19d41468c1aa6230b3 (diff) | |
download | FreeBSD-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.
-rw-r--r-- | sys/netncp/ncp_ncp.c | 5 | ||||
-rw-r--r-- | sys/netsmb/smb_subr.c | 5 | ||||
-rw-r--r-- | sys/nfsclient/nfs_socket.c | 5 |
3 files changed, 9 insertions, 6 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; } diff --git a/sys/netsmb/smb_subr.c b/sys/netsmb/smb_subr.c index 4a37d6e..2b428a3 100644 --- a/sys/netsmb/smb_subr.c +++ b/sys/netsmb/smb_subr.c @@ -42,6 +42,7 @@ #include <sys/socket.h> #include <sys/signalvar.h> #include <sys/mbuf.h> +#include <sys/ksiginfo.h> #include <sys/iconv.h> @@ -75,10 +76,10 @@ smb_proc_intr(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) && SMB_SIGMASK(tmpset)) + if (signal_queued(p, 0) && SMB_SIGMASK(tmpset)) return EINTR; return 0; } diff --git a/sys/nfsclient/nfs_socket.c b/sys/nfsclient/nfs_socket.c index 15cf946..192e251 100644 --- a/sys/nfsclient/nfs_socket.c +++ b/sys/nfsclient/nfs_socket.c @@ -61,6 +61,7 @@ __FBSDID("$FreeBSD$"); #include <sys/sysctl.h> #include <sys/syslog.h> #include <sys/vnode.h> +#include <sys/ksiginfo.h> #include <netinet/in.h> #include <netinet/tcp.h> @@ -1239,10 +1240,10 @@ nfs_sigintr(struct nfsmount *nmp, struct nfsreq *rep, struct thread *td) return (0); p = td->td_proc; - 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) && NFSINT_SIGMASK(tmpset)) + if (signal_queued(p, 0) && NFSINT_SIGMASK(tmpset)) return (EINTR); return (0); |