Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: get rid of termios2, use termios on Linux #700

Merged
merged 3 commits into from
Mar 21, 2019
Merged

Conversation

julianoes
Copy link
Collaborator

In order to simplify and to enable the build in manylinux1 it makes sense to go back to termios instead of termios2.

In order to simplify and to enable the build in manylinux1 it makes
sense to go back to termios instead of termios2.
@JonasVautherin
Copy link
Collaborator

Do we lose something by doing that? e.g. the ability to use non-standard baudrates?

@julianoes
Copy link
Collaborator Author

I don't think so.

@julianoes
Copy link
Collaborator Author

Tested this on Linux and baudrate change doesn't seem to be working anymore. Needs more investigation.

This includes the following baudrate fixes:
- Checks to see if the baudrate could actually be set as expected.
- Use baudrate defines instead of straight int, otherwise this doesn't
  work on Linux.
- Add error code for the case of an unknown/unsupported baudrate.
The assumption is that we don't need to use the defines on macOS.
@julianoes
Copy link
Collaborator Author

Tested on Linux and macOS, now works for both.

Copy link
Collaborator

@JonasVautherin JonasVautherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kind of have to trust you on that, but I'm happy to get rid of termios2 :)

@JonasVautherin
Copy link
Collaborator

[ FAILED ] CurlTest.Curl_DownloadText_HTTPS_Success

Seems to me like it is failing on appveyor, and only in Debug, because of an unrelated curl test.

@julianoes julianoes merged commit 69ee867 into develop Mar 21, 2019
@julianoes julianoes deleted the remove-termios2 branch March 21, 2019 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants