[no subject]

From: Revital Eres
Date: Thu Feb 16 2006 - 06:57:27 EST


Hello,
I understand that every system call is a cancellation point for pthreads. My question is how can I avoid this to happen; meaning- to forbid the cancellation point in the system call wrapper. (I call a system call from a cleanup function that is just been cancelled)

I tried to avoid it by setting pthread_setcancelstate (PTHREAD_CANCEL_DISABLE, &old_state); before calling the system call, but than if the thread had been cancelled the process just stuck.


Thanks for the help.



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/