pthread_create may return EAGAIN. It's one of the possible errors. The list is: EAGAIN, EINVAL and EPERM.
EPERM is 1 also in my system, so that's the error you get. The manual says
Quote:
EPERM
The caller does not have appropriate permission to set the required scheduling parameters or scheduling policy.
|
So how do you try to call the function? Check the arguments. If you still can't find it, post the code.