artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c9b2f1c
)
If somebody else is already processing the RPC requests on a stream socket,
author
kettenis
<kettenis@openbsd.org>
Fri, 18 Apr 2014 13:35:31 +0000
(13:35 +0000)
committer
kettenis
<kettenis@openbsd.org>
Fri, 18 Apr 2014 13:35:31 +0000
(13:35 +0000)
don't panic, but just return.
tested by nicm@
ok tedu@
sys/nfs/nfs_socket.c
patch
|
blob
|
history
diff --git
a/sys/nfs/nfs_socket.c
b/sys/nfs/nfs_socket.c
index
6946a28
..
e5ba9a1
100644
(file)
--- a/
sys/nfs/nfs_socket.c
+++ b/
sys/nfs/nfs_socket.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: nfs_socket.c,v 1.10
4 2014/03/22 06:05:45 guenther
Exp $ */
+/* $OpenBSD: nfs_socket.c,v 1.10
5 2014/04/18 13:35:31 kettenis
Exp $ */
/* $NetBSD: nfs_socket.c,v 1.27 1996/04/15 20:20:00 thorpej Exp $ */
/*
@@
-1681,7
+1681,7
@@
nfsrv_getstream(struct nfssvc_sock *slp, int waitflag)
u_int32_t recmark;
if (slp->ns_flag & SLP_GETSTREAM)
-
panic("nfs getstream"
);
+
return (0
);
slp->ns_flag |= SLP_GETSTREAM;
for (;;) {
if (slp->ns_reclen == 0) {