From owner-freebsd-sparc Mon Apr 10 5: 0:13 2000 Delivered-To: freebsd-sparc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id B371037B592 for ; Mon, 10 Apr 2000 05:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA63363; Mon, 10 Apr 2000 05:00:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from thehousleys.net (frenchknot.ne.mediaone.net [24.147.224.201]) by hub.freebsd.org (Postfix) with ESMTP id 083B737B76D for ; Mon, 10 Apr 2000 04:56:25 -0700 (PDT) (envelope-from housley@thehousleys.net) Received: (from root@localhost) by thehousleys.net (8.9.3/8.9.3) id HAA48141; Mon, 10 Apr 2000 07:56:24 -0400 (EDT) Message-Id: <200004101156.HAA48141@thehousleys.net> Date: Mon, 10 Apr 2000 07:56:24 -0400 (EDT) From: "James E. Housley" Reply-To: housley@thehousleys.net To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: sparc/17898: Patch to new version of helathd Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 17898 >Category: sparc >Synopsis: Patch to new version of healthd >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-sparc >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Apr 10 05:00:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: James E. Housley >Release: FreeBSD 3.4-STABLE i386 >Organization: The Housleys dot Net >Environment: >Description: >How-To-Repeat: >Fix: --- healthd.c 2000/04/09 20:59:07 1.1.1.6 +++ healthd.c 2000/04/10 11:52:57 1.1.1.7 @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: healthd.c,v 1.1.1.6 2000/04/09 20:59:07 housley Exp $ + * $Id: healthd.c,v 1.1.1.7 2000/04/10 11:52:57 housley Exp $ * * $FreeBSD$ */ @@ -604,8 +604,10 @@ case 'c': count = atoi(optarg); - if (count < 1) + if (count < 1) { count = 0; + } + debug=1; break; case 'd': @@ -668,68 +670,79 @@ } } - /* Create socket from which to read. */ - sock = socket(AF_INET, SOCK_STREAM, 0); - if (sock < 0) { - perror("opening datagram socket"); - exit(1); - } - /* Create name with wildcards. */ - server.sin_family = AF_INET; - server.sin_addr.s_addr = INADDR_ANY; - server.sin_port = htons(9669); - if (bind(sock, (struct sockaddr *)&server, sizeof(struct sockaddr_in))) { - perror("binding datagram socket"); - exit(1); - } - /* Find assigned port value and print it out. */ - length = sizeof(server); - if (getsockname(sock, (struct sockaddr *)&server, &length)) { - perror("getting socket name"); - exit(1); + if (debug == 0) { + /* Create socket from which to read. */ + sock = socket(AF_INET, SOCK_STREAM, 0); + if (sock < 0) { + perror("opening datagram socket"); + exit(1); + } + /* Create name with wildcards. */ + server.sin_family = AF_INET; + server.sin_addr.s_addr = INADDR_ANY; + server.sin_port = htons(9669); + if (bind(sock, (struct sockaddr *)&server, sizeof(struct sockaddr_in))) { + perror("binding datagram socket"); + exit(1); + } + /* Find assigned port value and print it out. */ + length = sizeof(server); + if (getsockname(sock, (struct sockaddr *)&server, &length)) { + perror("getting socket name"); + exit(1); + } } ReadCurrentValues(); time(&now); time(&tloc); - /* Start accepting connections */ - listen(sock, 5); + if (debug == 0) { + /* Start accepting connections */ + listen(sock, 5); + } while ((iter 0) { - iter++; + if (debug == 0) { + if (FD_ISSET(sock, &ready)) { + msgsock = accept(sock, 0, 0); + if (msgsock == -1) { + } else { + do { + bzero(buf, sizeof(buf)); + bzero(outbuf, sizeof(outbuf)); + if ((rval = read(msgsock, buf, 1024)) < 0) { + } + if (rval == 0) { + } else { + GetAnswer(buf, outbuf); + write(msgsock, outbuf, strlen(outbuf)); + } + } while (rval != 0); + close(msgsock); } - ReadCurrentValues(); - time(&now); } } + time(&tloc); + if (sec <= (int)difftime(tloc, now)) { + if (count > 0) { + iter++; + } + ReadCurrentValues(); + time(&now); + } + } + if (debug == 0) { + close(sock); } - close(sock); } void >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message From owner-freebsd-sparc Mon Apr 10 5:10: 4 2000 Delivered-To: freebsd-sparc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 49E5737B932 for ; Mon, 10 Apr 2000 05:10:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id FAA64863; Mon, 10 Apr 2000 05:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 10 Apr 2000 05:10:02 -0700 (PDT) Message-Id: <200004101210.FAA64863@freefall.freebsd.org> To: freebsd-sparc@freebsd.org Cc: From: James Housley Subject: Re: sparc/17898: Patch to new version of healthd Reply-To: James Housley Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR sparc/17898; it has been noted by GNATS. From: James Housley To: freebsd-gnats-submit@FreeBSD.org, housley@thehousleys.net Cc: Subject: Re: sparc/17898: Patch to new version of healthd Date: Mon, 10 Apr 2000 08:09:08 -0400 My mistake. This should be in ports. Jim -- "Eagles may soar, but weasels don't get sucked into jet engines" -- Anon To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message From owner-freebsd-sparc Mon Apr 10 8:49:16 2000 Delivered-To: freebsd-sparc@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id D536237B8D9; Mon, 10 Apr 2000 08:49:13 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (from jhb@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA89262; Mon, 10 Apr 2000 08:49:13 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Date: Mon, 10 Apr 2000 08:49:13 -0700 (PDT) From: Message-Id: <200004101549.IAA89262@freefall.freebsd.org> To: jhb@FreeBSD.org, freebsd-sparc@FreeBSD.org, freebsd-ports@FreeBSD.org Subject: Re: sparc/17898: Patch to new version of healthd Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Synopsis: Patch to new version of healthd Responsible-Changed-From-To: freebsd-sparc->freebsd-ports Responsible-Changed-By: jhb Responsible-Changed-When: Mon Apr 10 08:48:33 PDT 2000 Responsible-Changed-Why: Misfiled PR. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message From owner-freebsd-sparc Mon Apr 10 13:51:31 2000 Delivered-To: freebsd-sparc@freebsd.org Received: from relay1.wv.mentorg.com (relay1.mentorg.com [192.94.38.42]) by hub.freebsd.org (Postfix) with ESMTP id C28B437B514 for ; Mon, 10 Apr 2000 13:51:29 -0700 (PDT) (envelope-from burr_shaw@mentorg.com) Received: from em-wv03.wv.mentorg.com by relay1.wv.mentorg.com (8.8.8/CF5.40F) id NAA10932; Mon, 10 Apr 2000 13:51:29 -0700 (PDT) Received: from mentor.com by em-wv03.wv.mentorg.com (8.8.8/CF5.40R) id NAA25418; Mon, 10 Apr 2000 13:51:28 -0700 (PDT) Message-ID: <38F23ECE.4C5F7FED@mentor.com> Date: Mon, 10 Apr 2000 13:51:26 -0700 From: Burr Shaw X-Mailer: Mozilla 4.7 [en] (X11; I; SunOS 5.5.1 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-sparc@FreeBSD.ORG Subject: Sparc2 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org What resources does the project currently need? My background is in software development and QA in both C and C++. I have use of a SPARCStation 2 ( SunOS 5.5.1, Memory 64 MB ). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message From owner-freebsd-sparc Mon Apr 10 13:54:10 2000 Delivered-To: freebsd-sparc@freebsd.org Received: from relay.nuxi.com (nuxi.cs.ucdavis.edu [169.237.7.38]) by hub.freebsd.org (Postfix) with ESMTP id 4C72A37B6B9 for ; Mon, 10 Apr 2000 13:54:07 -0700 (PDT) (envelope-from obrien@NUXI.ucdavis.edu) Received: from dragon.nuxi.com (root@07-142.006.popsite.net [216.126.135.142]) by relay.nuxi.com (8.9.3/8.9.3) with ESMTP id NAA52259; Mon, 10 Apr 2000 13:54:00 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id NAA31945; Mon, 10 Apr 2000 13:53:56 -0700 (PDT) (envelope-from obrien) Date: Mon, 10 Apr 2000 13:53:55 -0700 From: "David O'Brien" To: Burr Shaw Cc: freebsd-sparc@FreeBSD.ORG Subject: Re: Sparc2 Message-ID: <20000410135355.D3453@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <38F23ECE.4C5F7FED@mentor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <38F23ECE.4C5F7FED@mentor.com>; from burr_shaw@mentorg.com on Mon, Apr 10, 2000 at 01:51:26PM -0700 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-PGP-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Keyid: 34F9F9D5 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Apr 10, 2000 at 01:51:26PM -0700, Burr Shaw wrote: > What resources does the project currently need? People doing *something*. -- -- David (obrien@NUXI.com) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message