[no subject]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux