Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
Recently I tried to write an asynchronous command line interface for my
program. I used posix::stream_descriptor with STDIN_FILENO assigned as data
source. Eventually, when I try to async_read_until from this stream, if I
simultaneously write to std::cout after some time I get EAGAIN error.
I wrote a small example that demonstrates this problem:
I'm using gcc 4.7.3, boost ver 1.49.
Any suggestions why it happens and how to fix it?