[Asterisk-Users] Re: How to nice agi scripts?

Eric "ManxPower" Wieling eric at fnords.org
Fri Mar 24 11:00:02 MST 2006


setpriority(0, 0, 20);

This is for Perl, of course.

Benny Amorsen wrote:
>>>>>> "RS" == Roger Schreiter <roger at planinternet.de> writes:
> 
> RS> Is there any mean to let AGI scripts run in a lower priority
> RS> (except starting a new shell from the a short initial AGI script)?
> 
> You can start the script with renice 15 $$, or whichever value you
> prefer. If the hickup happens because of the process startup, this
> will not help, but at least it is easy to try out.
> 
> 
> /Benny
> 
> 
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
> 
> Asterisk-Users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
> 




More information about the asterisk-users mailing list