On 2001-06-26 13:43:46 -0700, Archie Cobbs wrote:
> Takashi Ishihara wrote:
> > > I think pth_read() will normally block unless you use pth_fdmode()
> > > to set the descriptor to non-blocking.
> > 
> > This is not true after Pth 1.1.
> > Read pth man(1) utilities section.
> > In ps version, it's near the end of p.11.
> > It says "pth_read(3) or pth_write(3) will never block the current thread".
> 
> You forgot the beginning of that sentence: "Instead when you now
> switch a file descriptor explicitly into non-blocking mode, ...".
> 
> I read this to mean that if you don't switch it into non-blocking
> mode, then it will block.

That's my interpretation.  So basically pth_read() and pth_write() work
the same as read() and write() - exactly what you'd expect.  Trust me,
pth_read() and pth_write() do block when you have the file descriptor
set to delay.

Shane
______________________________________________________________________
GNU Portable Threads (Pth)            http://www.gnu.org/software/pth/
User Support Mailing List                            [EMAIL PROTECTED]
Automated List Manager (Majordomo)           [EMAIL PROTECTED]

Reply via email to