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: 2011-03-02 08:28:16

#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 chris_kohlhoff):

 (In [69467]) * Add support for the fork() system call. Programs that use
 fork must call
   io_service.notify_fork() at the appropriate times. Two new examples have
   added showing how to use this feature. Refs #3238, #4162.

 * Clean up the handling of errors reported by the close() system call. In
   particular, assume that most operating systems won't have close() fail
   EWOULDBLOCK, but if it does then set blocking mode and restart the call.
   any other error occurs we assume the descriptor is closed. Refs #3307.

 * EV_ONESHOT seems to cause problems on some versions of Mac OS X, with
   io_service destructor getting stuck inside the close() system call. Use
   EV_CLEAR instead. Refs #5021.

 * Include function name in exception what() messages.

 * Fix insufficient initialisers warning with MinGW.

 * Make the shutdown_service() member functions private.

 * Add archetypes for testing socket option functions.

 * Add missing lock in signal_set_service::cancel().

 * Fix copy/paste error in SignalHandler example.

 * The signal header needs to be included in signal_set_service.hpp so that
   can use constants like NSIG and SIGRTMAX.

 * Don't use Boost.Thread's convenience header. Use the header file that is
   specifically for the boost::thread class instead.

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:05 UTC