From owner-freebsd-hackers Tue Sep 22 06:33:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA02142 for freebsd-hackers-outgoing; Tue, 22 Sep 1998 06:33:12 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from gatekeeper.tsc.tdk.com (gatekeeper.tsc.tdk.com [207.113.159.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA02135 for ; Tue, 22 Sep 1998 06:33:11 -0700 (PDT) (envelope-from gdonl@tsc.tdk.com) Received: from sunrise.gv.tsc.tdk.com (root@sunrise.gv.tsc.tdk.com [192.168.241.191]) by gatekeeper.tsc.tdk.com (8.8.8/8.8.8) with ESMTP id GAA22678; Tue, 22 Sep 1998 06:32:30 -0700 (PDT) (envelope-from gdonl@tsc.tdk.com) Received: from salsa.gv.tsc.tdk.com (salsa.gv.tsc.tdk.com [192.168.241.194]) by sunrise.gv.tsc.tdk.com (8.8.5/8.8.5) with ESMTP id GAA22969; Tue, 22 Sep 1998 06:32:29 -0700 (PDT) Received: (from gdonl@localhost) by salsa.gv.tsc.tdk.com (8.8.5/8.8.5) id GAA17456; Tue, 22 Sep 1998 06:32:27 -0700 (PDT) From: Don Lewis Message-Id: <199809221332.GAA17456@salsa.gv.tsc.tdk.com> Date: Tue, 22 Sep 1998 06:32:25 -0700 In-Reply-To: Graham Wheeler "Re: The inetd realloc problem: an observation" (Sep 22, 3:27pm) X-Mailer: Mail User's Shell (7.2.6 alpha(3) 7/19/95) To: Graham Wheeler , Don.Lewis@tsc.tdk.com (Don Lewis) Subject: Re: The inetd realloc problem: an observation Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sep 22, 3:27pm, Graham Wheeler wrote: } Subject: Re: The inetd realloc problem: an observation } I've just changed the source so that all three signal handlers just set } flags, and the flags are tested at the start of the main processing loop } and the old handlers called if necessary. It will be interesting to see } if this improves things. You'll probably want to set a reasonable timeout on select() so that you don't wait forever if a signal happens when you're not in select() and no inputs arrive to activate select. Also, if select() returns -1, the code should examine the flags before returning to the top of the loop. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message