in reply to How to combine asyncrhonous I/O and readline?

Right. You can't mix buffered I/O (readline, read, seek, and so on) with unbuffered operations (select, sysread, sysseek). So stay with sysread, and all will be well. For more complicated applications, look into POE.
  • Comment on Re: How to combine asyncrhonous I/O and readline?