the test passes now, but signal handling during thread creation and shutdown is tricky llvm-svn: 224532