I like to handle cancellation point in my child thread. when I have set
pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL); //in child
when