asio::posix::stream_descriptor throws with redirected stdin
Hello,
Please consider the program listed below. I compiled with the command
"g++ test.cpp -lboost_system-mt" using GCC 4.5 on Gentoo linux with
boost 1.48.
When I invoke the program like this it works fine:
cat test.cpp | ./a.out
When I invoke the program like this it throws:
./a.out < test.cpp
The exception thrown:
terminate called after throwing an instance of
'boost::exception_detail::clone_impl
' what(): assign: Operation not permitted Aborted
Question: Why does the program throw when I redirect stdin to point to a file?
Thank you,
Chris
//=== begin test.cpp ===
#include
participants (1)
-
Chris Stankevitz