commit | bc506fd262cdcebc6cdb0910a87cb7e4ccdd059d | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Tue Feb 07 09:24:48 2017 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Tue Jun 27 14:55:02 2017 +0800 |
tree | 2a16c1f091af74b8caea776226cb339203b7af88 | |
parent | 81408bd0e45b7f97582cd8259fb0f6f93ebc4743 [diff] |
tty-handler: use simpler open in non-blocking mode Currently, we're opening the tty file descriptor in blocking mode, then switching to non-blocking mode with fcntl(F_SETFL, F_NDELAY); [and F_NDELAY == O_NDELAY == O_NONBLOCK ] This change just opens with O_NONBLOCK instead. Change-Id: I414ebec632008d65dec87d956d5a0ac1a46ec837 Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Note: In addition to a toolchain and autoconf tools, this requires autotools-archive
to be installed.
To build this project, run the following shell commands:
./bootstrap.sh ./configure ${CONFIGURE_FLAGS} make
To fully clean the repository, run:
./bootstrap.sh clean
Running the server requires a serial port (e.g. /dev/ttyS0):
touch obmc-console.conf ./obmc-console-server --config obmc-console.conf ttyS0
To connect to the server, simply run the client:
./obmc-console-client
To disconnect the client, use the standard ~.
combination.