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

This commit is contained in:
chris_kohlhoff 2008-08-09 01:14:16 +00:00
parent e60edd70c7
commit 8c4141dd08

View File

@ -119,6 +119,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);
}