Re: 100% cpu usage fix
Stipe Tolj <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | tolj.org system architecture |
| Message-ID | <[email protected]> |
Ernestas Vaiciukevičius schrieb:
> Hi,
>
> I was using debian version of kannel (1.4.1-2) and noticed that if
> initialization of GSM modem fail (for example, USB cable is not connected and
> modem device doesn't exist), bearerbox uses 100% CPU.
>
> I've modified smsc_at.c so that it sleeps for reconnect-delay seconds between
> retries even when failures occur early in initialization process.
>
> Also now it should exit the retry loop if privdata->shutdown is set.
>
> If someone is interested - my changes are attached to this message. Of course
> if it isn't already fixed in the CVS :)
thanks Ernestas for reporting and providing patch immediately.
Can anyone else confirm this with current CVS HEAD?
Stipe
-------------------------------------------------------------------
Kölner Landstrasse 419
40589 Düsseldorf, NRW, Germany
tolj.org system architecture Kannel Software Foundation (KSF)
http://www.tolj.org/ http://www.kannel.org/
mailto:st_{at}_tolj.org mailto:stolj_{at}_kannel.org
-------------------------------------------------------------------