3 #cc: additional_flags=-pthread
6 Testing a pthread corner case. Output will change with glibc
20 if (pthread_setcancelstate (PTHREAD_CANCEL_ENABLE
, NULL
) != 0)
23 for (i
= 0; i
< 10; i
++)
26 pthread_testcancel ();
39 retcode
= pthread_create (&th_a
, NULL
, process
, NULL
);
44 retcode
= pthread_cancel (th_a
);
45 retcode
= pthread_join (th_a
, &retval
);
48 fprintf (stderr
, " ok\n");