-APUE-:
fig11.5, thread cleanup handler.