Subj : Re: EPERM = pthread_create(), To : comp.programming.threads From : Casper H.S. Dik Date : Tue Sep 27 2005 12:16 pm Krzysztof Witkowski writes: >Then created serving thread checks whether certain process exists. >If not, it forks and calls execve on setuided application to create it. >After this serving thread and created process start to communicate through >shared memory, and sometimes this new process has to create threads. It >calls pthread_create, new thread is created, but return value is EPERM. >From pthread_create man page: >EPERM The caller does not have appropriate permission to set the required >scheduling parameters or scheduling policy. EPERM is also the typical error you get when you are mistaken in the precendence of operators or forget to add the parentheses required. if (err = pthread_create() == 0) which always gives err == 1 (on success). So shows us the code. Casper -- Expressed in this posting are my opinions. They are in no way related to opinions held by my employer, Sun Microsystems. Statements on Sun products included here are not gospel and may be fiction rather than truth. .