Re: Glib::IO->add_watch - file descriptor got locked till the end of all incoming data




On Aug 3, 2009, at 2:14 PM, anguila wrote:

Solved, I just put a new line to set the end of line and it works :)

If you control both sides, that's the cleanest solution.  Rock.


i cant use sysread because i doesnt know the length of the input each time.

That's generally not a problem if the file handle is set to non- blocking; sysread() should read what's available up to the buffer size you give.


--
The trees on the bus go "pyoo pyoo pyoo..."
  -- Yvonne, singing, um, something




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]