[674] in Pthreads mailing list archive
Re: NONBLOCKING fcntl
daemon@ATHENA.MIT.EDU (Greg Hudson)
Wed Jul 9 23:07:29 1997
To: Cheryl Huntington <clh@swdc.stratus.com>
Cc: pthreads@MIT.EDU
In-Reply-To: Your message of "Wed, 09 Jul 1997 15:38:23 PDT."
<33C412DF.167EB0E7@swdc.stratus.com>
Date: Wed, 09 Jul 1997 23:01:49 EDT
From: Greg Hudson <ghudson@MIT.EDU>
> I've noticed in fd.c, that the function fcntl always sets the fd to
> be NONBLOCKING for F_SETFL. I can see why you wouldn't want blocking
> in threads, but what if the app really needs blocking? Is it
> reasonable to force it to be NONBLOCKING?
Threads will still block on I/O operations unless they set the file
descriptor non-blocking themselves.