Boost logo

Boost-Commit :

From: chris_at_[hidden]
Date: 2008-08-08 21:47:12


Author: chris_kohlhoff
Date: 2008-08-08 21:47:11 EDT (Fri, 08 Aug 2008)
New Revision: 48039
URL: http://svn.boost.org/trac/boost/changeset/48039

Log:
Include CREAD and CLOCAL in the default flags for serial ports.

Text files modified:
   trunk/boost/asio/detail/reactive_serial_port_service.hpp | 1 +
   1 files changed, 1 insertions(+), 0 deletions(-)

Modified: trunk/boost/asio/detail/reactive_serial_port_service.hpp
==============================================================================
--- trunk/boost/asio/detail/reactive_serial_port_service.hpp (original)
+++ trunk/boost/asio/detail/reactive_serial_port_service.hpp 2008-08-08 21:47:11 EDT (Fri, 08 Aug 2008)
@@ -120,6 +120,7 @@
       ios.c_cflag |= CS8;
 #endif
       ios.c_iflag |= IGNPAR;
+ ios.c_cflag |= CREAD | CLOCAL;
       descriptor_ops::clear_error(ec);
       s = descriptor_ops::error_wrapper(::tcsetattr(fd, TCSANOW, &ios), ec);
     }


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk