2
0
mirror of https://github.com/boostorg/asio.git synced 2026-02-25 14:32:08 +00:00

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

[SVN r48039]
This commit is contained in:
Christopher Kohlhoff
2008-08-09 01:47:11 +00:00
parent a81db41dbc
commit 8b4057a004

View File

@@ -120,6 +120,7 @@ public:
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);
}