Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/usr.sbin/rpc.statd Pull up revisions 1.20-1.21 (request...
details: https://anonhg.NetBSD.org/src/rev/ca0fcd51d564
branches: netbsd-1-6
changeset: 529879:ca0fcd51d564
user: jmc <jmc%NetBSD.org@localhost>
date: Mon Jan 06 04:52:53 2003 +0000
description:
Pull up revisions 1.20-1.21 (requested by fvdl in ticket #1037)
Use a non-blocking SVC for TCP connections.
diffstat:
usr.sbin/rpc.statd/statd.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (35 lines):
diff -r 6a26cbc733e0 -r ca0fcd51d564 usr.sbin/rpc.statd/statd.c
--- a/usr.sbin/rpc.statd/statd.c Mon Jan 06 04:52:33 2003 +0000
+++ b/usr.sbin/rpc.statd/statd.c Mon Jan 06 04:52:53 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: statd.c,v 1.20 2001/11/23 17:10:29 christos Exp $ */
+/* $NetBSD: statd.c,v 1.20.2.1 2003/01/06 04:52:53 jmc Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -37,7 +37,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: statd.c,v 1.20 2001/11/23 17:10:29 christos Exp $");
+__RCSID("$NetBSD: statd.c,v 1.20.2.1 2003/01/06 04:52:53 jmc Exp $");
#endif
/* main() function for status monitor daemon. Some of the code in this */
@@ -99,6 +99,7 @@
{
int ch;
struct sigaction nsa;
+ int maxrec = RPC_MAXDATASIZE;
sigemptyset(&nsa.sa_mask);
nsa.sa_flags = SA_NOCLDSTOP|SA_NOCLDWAIT;
@@ -120,6 +121,8 @@
}
(void)rpcb_unset(SM_PROG, SM_VERS, NULL);
+ rpc_control(RPC_SVC_CONNMAXREC_SET, &maxrec);
+
if (!svc_create(sm_prog_1, SM_PROG, SM_VERS, "udp")) {
errx(1, "cannot create udp service.");
/* NOTREACHED */
Home |
Main Index |
Thread Index |
Old Index