[asterisk-dev] fork or pthread_atfork

Kevin P. Fleming kpfleming at digium.com
Sun Apr 8 09:24:28 MST 2007

Tilghman Lesher wrote:

> I've been looking at the manpages for the scheduling calls, and based upon the
> documentation therein, I have to conclude that the call to setpriority can
> never fail when lowering the priority, which makes the error checking
> superfluous.  The error checks could probably be removed, just as we've
> removed error checking for ast_strdupa() and alloca() (because they similarly
> can never fail).

Seems reasonable to me.

More information about the asterisk-dev mailing list