diff options
author | iedowse <iedowse@FreeBSD.org> | 2001-04-03 22:07:19 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2001-04-03 22:07:19 +0000 |
commit | 860771198c0638c98c2c310be1a248d4d65a9dff (patch) | |
tree | 7ce160dbcab2dba915bea839be19cce41346dd59 | |
parent | 9bb8706a139dcb39f11af874e974a430884f744a (diff) | |
download | FreeBSD-src-860771198c0638c98c2c310be1a248d4d65a9dff.zip FreeBSD-src-860771198c0638c98c2c310be1a248d4d65a9dff.tar.gz |
Remove some hacks that were apparently added to avoid problems with
RPC clients hanging. The real problem turned out to be missing
cleanup code; this was fixed in clnt_vc.c r1.5 and clnt_dg.c r1.4.
Submitted by: Martin Blapp <mb@imp.ch>
-rw-r--r-- | lib/libc/rpc/clnt_dg.c | 3 | ||||
-rw-r--r-- | lib/libc/rpc/clnt_vc.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/rpc/clnt_dg.c b/lib/libc/rpc/clnt_dg.c index 3f6cfd4..089c79b 100644 --- a/lib/libc/rpc/clnt_dg.c +++ b/lib/libc/rpc/clnt_dg.c @@ -98,8 +98,7 @@ extern mutex_t clnt_fd_lock; static cond_t *dg_cv; #define release_fd_lock(fd, mask) { \ mutex_lock(&clnt_fd_lock); \ - if (__isthreaded) \ - dg_fd_locks[fd] = 0; \ + dg_fd_locks[fd] = 0; \ mutex_unlock(&clnt_fd_lock); \ thr_sigsetmask(SIG_SETMASK, &(mask), (sigset_t *) NULL); \ cond_signal(&dg_cv[fd]); \ diff --git a/lib/libc/rpc/clnt_vc.c b/lib/libc/rpc/clnt_vc.c index df0d83c..38c9ceb 100644 --- a/lib/libc/rpc/clnt_vc.c +++ b/lib/libc/rpc/clnt_vc.c @@ -132,8 +132,7 @@ extern mutex_t clnt_fd_lock; static cond_t *vc_cv; #define release_fd_lock(fd, mask) { \ mutex_lock(&clnt_fd_lock); \ - if (__isthreaded) \ - vc_fd_locks[fd] = 0; \ + vc_fd_locks[fd] = 0; \ mutex_unlock(&clnt_fd_lock); \ thr_sigsetmask(SIG_SETMASK, &(mask), (sigset_t *) NULL); \ cond_signal(&vc_cv[fd]); \ |