Re: [Boost-bugs] [Boost C++ Libraries] #4162: io_service can't be used correctly after fork().

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4162: io_service can't be used correctly after fork().
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-09-06 14:28:19


#4162: io_service can't be used correctly after fork().
----------------------------------+-----------------------------------------
  Reporter: artyomtnk@… | Owner: chris_kohlhoff
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: asio
   Version: Boost 1.42.0 | Severity: Problem
Resolution: | Keywords: asio posix fork unix
----------------------------------+-----------------------------------------

Comment (by artyomtnk@…):

 To be honst, from my knowlege of boost.asio and my implementation
 of fork aware boost**er**.aio for CppCMS I don't think this is quite
 simple feature to implement, few points:

 - Reactor should be created, first time only after fork, probably on call
 of io_service::run, otherwise, its file descriptor (for
 epoll/depoll/kqueue) would be shared between processes.,
 - Select interrupters should be created after fork as well as it my be
 shared between processes as well and lead to very bad bugs.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4162#comment:6>
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:04 UTC