prevent code from running under a thread id which already gave ESRCH
[musl] / lib /
2011-02-17 Rich Felkernew solution for empty lib dir (old one had some problems)