Boost C++ Libraries: Ticket #11448: posix::stream_descriptor with ::dup(STDIN_FILENO) as in sample posix chat client kills shell on Solaris 11.2 https://svn.boost.org/trac10/ticket/11448 <p> If you build boost_1_58_0/libs/asio/example/cpp03/chat/posix_chat_client.cpp on Solaris 11.2 and run it, it immediately terminates. Unfortunately it terminates also the running shell which startet posix_chat_client. </p> <p> It is not important whether you compile with gcc or Sun CC. The behavior is always the same. </p> <p> It you redirect the input from a file (posix_chat_client &lt; some-file) or pipe data to it, everything works. The shell persists. </p> <p> If you disable /dev/poll for Boost::Asio (macro via command line at compilation -DBOOST_ASIO_DISABLE_DEV_POLL) the program runs and accepts inputs. As soon as you terminate the chat client the shell terminates, too. </p> <p> The problem seems to be the initialization of boost::asio::posix::stream_descriptor input_ in class posix_chat_client: input_(io_service, ::dup(STDIN_FILENO)) </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11448 Trac 1.4.3 Oliver Mueller <info@…> Thu, 02 Jul 2015 22:52:57 GMT summary changed https://svn.boost.org/trac10/ticket/11448#comment:1 https://svn.boost.org/trac10/ticket/11448#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">sample posix chat client kills shell on Solaris 11.2</span> → <span class="trac-field-new">posix::stream_descriptor with ::dup(STDIN_FILENO) as in sample posix chat client kills shell on Solaris 11.2</span> </li> </ul> Ticket Oliver Mueller <info@…> Thu, 02 Jul 2015 23:24:18 GMT component changed; owner set https://svn.boost.org/trac10/ticket/11448#comment:2 https://svn.boost.org/trac10/ticket/11448#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">chris_kohlhoff</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">asio</span> </li> </ul> Ticket