Author :
Ryan C. Gordon
Date :
2018-02-17 23:57:57
Hash :75a58303 Message :pthread: fix error code checks (thanks, Andreas!).
Most pthread functions return 0 on success and non-zero on error, but those
errors might be positive or negative, so checking for return values in the
Unix style, where errors are less than zero, is a bug.
Fixes Bugzilla #4039.