Fix return code which is an error occurred at pthread function
Fix return code which is an error occurred at pthread function

kgaillot/libqb,kgaillot/libqb,kgaillot/libqb,rubenk/libqb,davidvossel/libqb,davidvossel/libqb,ClusterLabs/libqb,ClusterLabs/libqb,ClusterLabs/libqb,rubenk/libqb,gao-yan/libqb,gao-yan/libqb