Issue #3184 has been reported by tkusumi. ---------------------------------------- Bug #3184: tsleep(9) return value when PCATCH specified http://bugs.dragonflybsd.org/issues/3184
* Author: tkusumi * Status: New * Priority: Normal * Assignee: * Category: * Target version: ---------------------------------------- tsleep(9) with PCATCH causes the function to check for signals before and after sleeping, as mentioned in man page. https://www.dragonflybsd.org/cgi/web-man?command=tsleep§ion=9 But PCATCH also lets signal wake up the process, and when this happens tsleep(9) returns 0 instead of EINTR. https://github.com/DragonFlyBSD/DragonFlyBSD/blob/master/sys/kern/kern_synch.c#L628 Is above returning 0 expected behavior ? >From process perspective, there is no clear distinction between above and >regular wakeup, hence unable to tell one from another. It's clearer if it also returns EINTR or something non zero. -- 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