OSDN Git Service

Check the return code of pthread_create(). Otherwise we go into an infinite
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 27 May 2011 08:51:23 +0000 (11:51 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Fri, 27 May 2011 09:55:02 +0000 (12:55 +0300)
commit336db7e3474508b46a0e6bdb013a8bee5aac9adf
treec8cebe505142e0448e791d249566cd39a2a4e4af
parent3987e9e62046bd800d8d08566ed49fee1ae6cb86
Check the return code of pthread_create(). Otherwise we go into an infinite
loop if it fails, which is what what happened on my HP-UX box. (I think
the reason it failed on that box is a misconfiguration on my behalf, but
that's no reason to hang.)
src/test/thread/thread_test.c