summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2017-01-20 16:01:11 +0000
committerThomas Adam <thomas@xteddy.org>2017-01-20 16:01:11 +0000
commitc17b0a202aba4cbf9490c130d3d9a4966c559fc2 (patch)
tree529a82d1ae9ace6a56205ae13aa1eec3e76392f0 /client.c
parent61af9d7cc27f9999e4f6e3dab9f786a074a97dee (diff)
parent46572ba904b0fb37e3a6848f292c07ff61280985 (diff)
Merge branch 'obsd-master'
Diffstat (limited to 'client.c')
-rw-r--r--client.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/client.c b/client.c
index 1c6c8bff..e3d65964 100644
--- a/client.c
+++ b/client.c
@@ -314,8 +314,11 @@ client_main(struct event_base *base, int argc, char **argv, int flags,
event_set(&client_stdin, STDIN_FILENO, EV_READ|EV_PERSIST,
client_stdin_callback, NULL);
if (client_flags & CLIENT_CONTROLCONTROL) {
- if (tcgetattr(STDIN_FILENO, &saved_tio) != 0)
- fatal("tcgetattr failed");
+ if (tcgetattr(STDIN_FILENO, &saved_tio) != 0) {
+ fprintf(stderr, "tcgetattr failed: %s\n",
+ strerror(errno));
+ return (1);
+ }
cfmakeraw(&tio);
tio.c_iflag = ICRNL|IXANY;
tio.c_oflag = OPOST|ONLCR;