Fix PR 18391, from Geoff Wing.
This commit is contained in:
parent
c4058929fe
commit
29ac8aa531
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: nfsd.c,v 1.40 2002/09/23 12:48:07 mycroft Exp $ */
|
/* $NetBSD: nfsd.c,v 1.41 2002/09/24 17:32:03 mycroft Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989, 1993, 1994
|
* Copyright (c) 1989, 1993, 1994
|
||||||
@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993, 1994\n\
|
|||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
|
static char sccsid[] = "@(#)nfsd.c 8.9 (Berkeley) 3/29/95";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: nfsd.c,v 1.40 2002/09/23 12:48:07 mycroft Exp $");
|
__RCSID("$NetBSD: nfsd.c,v 1.41 2002/09/24 17:32:03 mycroft Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* not lint */
|
#endif /* not lint */
|
||||||
|
|
||||||
@ -728,11 +728,9 @@ main(argc, argv)
|
|||||||
* into the kernel for the mounts.
|
* into the kernel for the mounts.
|
||||||
*/
|
*/
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (connect_type_cnt > 1) {
|
if (poll(set, 4, INFTIM) < 1) {
|
||||||
if (poll(set, 4, INFTIM) < 1) {
|
syslog(LOG_ERR, "select failed: %m");
|
||||||
syslog(LOG_ERR, "select failed: %m");
|
exit(1);
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (set[0].revents & POLLIN) {
|
if (set[0].revents & POLLIN) {
|
||||||
@ -795,7 +793,7 @@ main(argc, argv)
|
|||||||
len = sizeof(inetpeer);
|
len = sizeof(inetpeer);
|
||||||
if ((msgsock = accept(tpipsock,
|
if ((msgsock = accept(tpipsock,
|
||||||
(struct sockaddr *)&inetpeer, &len)) < 0) {
|
(struct sockaddr *)&inetpeer, &len)) < 0) {
|
||||||
syslog(LOG_ERR, "Accept failed: %m");
|
syslog(LOG_ERR, "accept failed: %m");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (setsockopt(msgsock, SOL_SOCKET,
|
if (setsockopt(msgsock, SOL_SOCKET,
|
||||||
|
Loading…
Reference in New Issue
Block a user