lkml.org 
[lkml]   [2006]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Subject
    Date
    From
    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@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2006-02-16 13:02    [W:0.021 / U:58.864 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site