On Mon, 02 Dec 2013 10:34:00 +0100, Mark Wielaard wrote:
> Note that the documentation of pthread_create doesn't say whether or not
> it will set errno. It returns either zero for success or the error code
> itself.

man 7 pthreads
  Pthreads function return values
    Most pthreads functions return 0 on success, and an error number of
    failure. Note that the pthreads functions do not set errno.


> I would just remove the assert_perror (errno) here and see if that gets
> rid of the random unexpected errors. The assert (i == 0) should remain
> of course.

I was aware that would fix it but now I have at least found why.


Thanks,
Jan

Reply via email to