Subject: [Boost-bugs] [Boost C++ Libraries] #11448: sample posix chat client kills shell on Solaris 11.2
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-07-02 22:48:59
#11448: sample posix chat client kills shell on Solaris 11.2
-------------------------------------+------------------------------
Reporter: Oliver Mueller <info@â¦> | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.58.0
Severity: Problem | Keywords:
-------------------------------------+------------------------------
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.
It is not important whether you compile with gcc or Sun CC. The behavior
is always the same.
It you redirect the input from a file (posix_chat_client < some-file) or
pipe data to it, everything works. The shell persists.
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.
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))
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/11448> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:18 UTC