This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [tests patchv2] FYI unwinder: tests/ update


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]