Re: breaking out of accept loop in perl?

Jonathan Roy (roy@atlantic.net)
Wed, 21 May 1997 23:17:03 -0400

Message-Id: <3.0.1.32.19970521231703.0069e578@mail.atlantic.net>
Date: Wed, 21 May 1997 23:17:03 -0400
To: philr@peoplelink.com,
From: Jonathan Roy <roy@atlantic.net>
Subject: Re: breaking out of accept loop in perl?
In-Reply-To: <33839446.69BEE692@peoplelink.com>


  I do something like this:

$mycount = 0;

while(FCGI::accept() >= 0) {
    $mycount++ > 300 and last;
}

FCGI::finish();
exit();

  So that it will reload the control files now and then to catch changes.

-Jonathan

At 05:33 PM 5/21/97 -0700, G. Philip Reger wrote:
>How does one break out of the
>
>while (FCGI::accept() >= 0) {
>	...
>}
>
>loop? I've tried FCGI::finish() and FCGI:finish() and then break, but
>neither seems to work. I don't want to call exit() because that would
>cause my code to completely terminate, right?
>
>help!
>
>phil
>-- 
>G. Philip Reger
>Mgr. Systems Operations
>PeopleLink, Inc. - Connect. Communicate. Simply.
>
>

--
Jonathan Roy - roy@idle.com -- Idle Communications, Inc.
Mail rhoefer@cdmag.com to advertise with the Games Domain! 
http://www.gamesdomain.com/ or http://www.gamesdomain.co.uk/