[sr-dev] how to define an infinite while loop?

Ovidiu Sas osas at voipembedded.com
Fri Apr 2 04:39:28 CEST 2010


I think 1 == 1 will be evaluated on each loop.
I really liked the old way: while( true ) { ... }
It was nice and easy to read.

Thanks,
Ovidiu

On Thu, Apr 1, 2010 at 10:27 PM, Alex Balashov
<abalashov at evaristesys.com> wrote:
> On 04/01/2010 10:23 PM, Ovidiu Sas wrote:
>
>> How can I define a simple infinite loop without getting a warning in the
>> logs.
>
> How does
>
>   while(1 == 1)
>
> stack up?
>
> --
> Alex Balashov - Principal
> Evariste Systems LLC
> 1170 Peachtree Street
> 12th Floor, Suite 1200
> Atlanta, GA 30309
> Tel: +1-678-954-0670
> Fax: +1-404-961-1892
> Web: http://www.evaristesys.com/
>
> _______________________________________________
> sr-dev mailing list
> sr-dev at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
>



More information about the sr-dev mailing list