[DragonFlyBSD - Bug #3162] (Closed) sleep() is not a pthread cancel point?

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Tue Mar 19 22:37:20 PDT 2019

Issue #3162 has been updated by dillon.

Status changed from New to Closed
Assignee set to dillon

sleep is supposed to be a cancel point too.  There was a missing strong reference in our pthreads library which caused the wrong sleep() function to be called.  I have fixed it in the master and 5.4 release branch.

thanks for the bug report, sorry for the long delay!


Bug #3162: sleep() is not a pthread cancel point?

* Author: godfrey
* Status: Closed
* Priority: Normal
* Assignee: dillon
* Category: 
* Target version: Latest stable
OS Version: 5.4
When running sleep(5) in one thread,  it cannot be canceled.
After change to usleep(5000000), it can be canceled.
So, is sleep() a pthread cancel point on DragonFlyBSD?
I didn't found any information in related manpages.
The binary I tested is linked to /usr/lib/libpthread.so.0,
which symlink to thread/libthread_xu.so.

You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account

More information about the Bugs mailing list