Improved error handling

Fixes a memory leak and avoids aggressive busy looping when problems
accessing tty device.
This commit is contained in:
Martin Lund 2016-05-08 00:37:27 +02:00
parent 4c59995db8
commit ece9e7f918
5 changed files with 132 additions and 26 deletions

View file

@ -1,14 +1,16 @@
bin_PROGRAMS = tio
tio_SOURCES = tty.c \
options.c \
time.c \
main.c \
log.c \
include/tio/tty.h \
include/tio/options.h \
include/tio/time.h \
include/tio/print.h \
include/tio/log.h
options.c \
time.c \
main.c \
log.c \
error.c \
include/tio/tty.h \
include/tio/options.h \
include/tio/time.h \
include/tio/print.h \
include/tio/log.h \
include/tio/error.h
if ENABLE_BASH_COMPLETION
bashcompletiondir=@BASH_COMPLETION_DIR@