ttybus icon indicating copy to clipboard operation
ttybus copied to clipboard

fix for vmware VMs

Open iddq opened this issue 5 years ago • 1 comments

https://github.com/danielinux/ttybus/blob/32e9a9edda3717a1244e394dc59e02e1e469cee0/tty_attach.c#L100

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

iddq avatar Dec 18 '19 10:12 iddq

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.

danielinux avatar Mar 22 '21 19:03 danielinux