]> git.ipfire.org Git - thirdparty/systemd.git/commit
terminal-util: when resetting terminals, don't wait for carrier
authorLennart Poettering <lennart@poettering.net>
Mon, 3 Aug 2015 17:04:08 +0000 (19:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 3 Aug 2015 17:06:35 +0000 (19:06 +0200)
commit0a8b555ceb07ce916b9bd48782d1eb69a12f0f2e
treecf711a70a2ba06c2ba6dc04cd95f4da8c8fbb1c8
parent5ef9b2203e027da168b18d92045462422895565b
terminal-util: when resetting terminals, don't wait for carrier

In case of non-CLOCAL lines (i.e. those with carrier detect configured)
we shouldnt wait for a carrier if all we try to do is reset the TTY.
Hence, whenever we open such a TTY pass O_NONBLOCK.

Note that we continue to open ttys we intend to write to without
O_ONBLOCK, we only add it in cases we invoke ioctl()s or other terminal
operations without reading or writing to the device.

Fixes #835.
src/basic/terminal-util.c