danielinux/ttybus

fix for vmware VMs

iddq opened this issue · 1 comments

iddq commented

realdev = open(devname, O_RDWR);

-       realdev = open(devname, O_RDWR);
+       realdev = open(devname, O_RDWR|O_NOCTTY|O_NONBLOCK);

tty's may be used as controlling TTY in some cases, so O_NOCTTY by default is not an option.
I don't see any valid reasons to make the socket non blocking either.

Perhaps both could be configuration options if it makes sense.