404406 s390x: z14 miscellaneous instructions not implemented
409141 Valgrind hangs when SIGKILLed
409367 exit_group() after signal to thread waiting in futex() causes hangs
+410599 Non-deterministic behaviour of pth_self_kill_15_other test
n-i-bz Fix minor one time leaks in dhat.
n-i-bz Add --run-cxx-freeres=no in outer args to avoid inner crashes.
valgrind ./pth_self_kill 15 killotherthread was looping.
*/
+pthread_t parent_thr;
+
void *t(void *p)
{
sleep (200);
return NULL;
}
+void handler_15(int signum)
+{
+ pthread_join(parent_thr, NULL);
+ exit(2);
+}
+
int main(int argc, char **argv)
{
pthread_t thr;
+ parent_thr = pthread_self();
+
+ struct sigaction sa_old;
+ struct sigaction sa_new;
+
+ sigaction(15, NULL, &sa_old);
+ sa_new.sa_mask = sa_old.sa_mask;
+ sa_new.sa_flags = sa_old.sa_flags;
+ sa_new.sa_handler = &handler_15;
+ sigaction(15, &sa_new, NULL);
+
+
if (argc <= 1)
{
printf
}
else
raise(s);
+ sigaction(15, &sa_old, NULL);
}