openposix: pthread_create_1-3: Fix.

Use return value from ptread_create() instead of errno on failure.

Use _exit() instead of exit() and write() instead of printf() in signal
handler.

Call pthread_join() in the main thread, otherwise it will always exit
with PASS (even when the second thread wasn't canceled).

Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
1 file changed