Date: Sun, 10 Oct 1999 21:11:15 -0700 (PDT) From: tommy@ti.com To: freebsd-gnats-submit@freebsd.org Subject: bin/14255: rup and rusers could not deal with many host Message-ID: <19991011041115.A370514E74@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 14255 >Category: bin >Synopsis: rup and rusers could not deal with many host >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Oct 10 21:20:01 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Kenji Tomita >Release: 3.2-RELEASE >Organization: Texas Instruments Japan >Environment: FreeBSD freebsd 3.2-RELEASE FreeBSD 3.2-RELEASE #2: Tue Aug 17 11:34:05 JST 1999 root@:/usr/src/sys/compile/FMV i386 >Description: Because rup and rusers did not close RPC handle after clnt_call(), they may exhaust file handles if many hosts were specified by command line arguments. >How-To-Repeat: On csh, % limit openfiles 16 % rup host1 host2 host3 ... host1 12:59pm up 31 days, 13:50, load average: 0.02 0.06 0.07 host2 12:59pm up 31 days, 13:50, load average: 0.02 0.06 0.07 ... rup: unknown host "host15" ... This behavior may depend on your environment such as /etc/host.conf. >Fix: Simply do clnt_destroy() like this. *** /usr/src/usr.bin/rup/rup.c Thu Apr 2 06:34:10 1998 --- rup.c Sun Oct 10 03:21:59 1999 *************** *** 178,183 **** --- 178,184 ---- warnx("%s: %s", host, clnt_sperror(rstat_clnt, host)); return(-1); } + clnt_destroy(rstat_clnt); addr.sin_addr.s_addr = *(int *)hp->h_addr; rstat_reply((char *)&host_stat, &addr); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991011041115.A370514E74>