Re: Runaway cron task on 2.5.63/4 bk?

From: Felipe Alfaro Solana (felipe_alfaro@linuxmail.org)
Date: Mon Mar 10 2003 - 18:05:39 EST


----- Original Message -----
From: Andrew Morton <akpm@digeo.com>
Date: Mon, 10 Mar 2003 14:29:44 -0800
To: george anzinger <george@mvista.com>
Subject: Re: Runaway cron task on 2.5.63/4 bk?
 
> If an app wants to sleep forever, calling
>
> while (1)
> sleep(MAX_INT);
>
> seems like a reasonable approach. I'd expect quite a lot of applications
> would be doing that.
 
why not sleep(0)?
 
   Felipe
 

-- 
______________________________________________
http://www.linuxmail.org/
Now with e-mail forwarding for only US$5.95/yr

Powered by Outblaze - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Mar 15 2003 - 22:00:23 EST