Reverted 1.256. This fixes a segfault if exit() is used from a thread when cleanup-on-exit is compiled in. Rev: src/threads.c:1.281