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

Strange hang on open (DS9097 via ch341-uart converter #17

Open
FredFirestone opened this issue Apr 30, 2016 · 0 comments
Open

Strange hang on open (DS9097 via ch341-uart converter #17

FredFirestone opened this issue Apr 30, 2016 · 0 comments

Comments

@FredFirestone
Copy link

Hi,

I'm experiencing strange hangs on open in owAcquire (userial/ds9097/linuxses.c). I've straced and debuged the hang but was curios as minicom seems to work fine.

I've decided to be bold and add the flags O_NOCTTY|O_NONBLOCK and this seemed to have helped the issue.

The line now reads:
if ((fd[portnum] = open(port_zstr, O_RDWR|O_NOCTTY|O_NONBLOCK )) == -1)

Regards,

Markus

Repository owner deleted a comment from Ekkib Nov 19, 2018
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

No branches or pull requests

1 participant