Hi!

On Tue, Mar 21, 2006 at 10:26:42PM +0100, Jan Engelhardt wrote:
>Hello list,

>I have found out that when linking a userspace application with -lpthread, 
>then for some reason, a device driver's read() routine suddenly has 
>IO_NDELAY set in flags. Bug?

No. This is as it should be, because -lpthread does threads in *one*
kernel process, so it has to intercept blocking operations so it can
switch to another thread instead, or call select/poll/kevent if needed,
so not all threads hang if *one* executes a blocking operation.

Kind regards,

Hannah.

Reply via email to