]> rtime.felk.cvut.cz Git - sojka/sterm.git/commit
Never block when opening the port
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Jan 2015 09:19:22 +0000 (10:19 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Jan 2015 09:19:22 +0000 (10:19 +0100)
commit89b6cdbaf65bc4c821f893ab3cfdbc499f10c534
treedcd165150ee2def4d079951966ef33a25adc686a
parent9aec3c44aa11db1ed226ab3cb1b20441dc86b19b
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.
sterm.c