From: kettenis Date: Fri, 18 Apr 2014 13:35:31 +0000 (+0000) Subject: If somebody else is already processing the RPC requests on a stream socket, X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cdff601ac7362f702445f15b6fc2204f9821c627;p=openbsd If somebody else is already processing the RPC requests on a stream socket, don't panic, but just return. tested by nicm@ ok tedu@ --- diff --git a/sys/nfs/nfs_socket.c b/sys/nfs/nfs_socket.c index 6946a2848dc..e5ba9a1d1d7 100644 --- a/sys/nfs/nfs_socket.c +++ b/sys/nfs/nfs_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_socket.c,v 1.104 2014/03/22 06:05:45 guenther Exp $ */ +/* $OpenBSD: nfs_socket.c,v 1.105 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) {