Michal Sojka [Tue, 27 Jan 2015 09:29:55 +0000 (10:29 +0100)]
Disable flow control
RTS/CTS lines may be used for something else than flow control so disable
it. If it turns out that we need it for some hardware, we will add an
command line option to enable it.
Michal Sojka [Tue, 27 Jan 2015 09:19:22 +0000 (10:19 +0100)]
Never block when opening the port
Whether blocking happens depends on the value of CDC signal and previously
set CLOCAL settings. Since we cannot influence CLOCAL settings before
opening the port, we have to use O_NONBLOCK.
Michal Sojka [Wed, 23 Jul 2014 16:49:03 +0000 (18:49 +0200)]
Use liblockdev to lock the tty device
This is simpler and it should also be compatible with systemd initiated
change of /var/lock permissions. See
http://lists.freedesktop.org/archives/systemd-devel/2011-March/001823.html