bug-sh-utils
[Top][All Lists]
Advanced

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

Is it a bug in sleep() ?


From: kumahit
Subject: Is it a bug in sleep() ?
Date: Wed, 7 Mar 2001 21:03:33 -0600

  Hi,

       Is it a bug in sleep() ?

                  main thread ---
                                    pthread_cancel(th);
                                    .............

                 in  "th" thread---
                         {
                         pthread_setcancelstate(PTHREAD_CANCEL_DISABLE,NULL)

                                sleep(8);  // still interrupted
                                ........


Although i am disabling the cancel signal
              But still sleep is getting interrupted ?
   






reply via email to

[Prev in Thread] Current Thread [Next in Thread]