summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorCurtis McEnroe2018-08-11 12:47:39 -0400
committerCurtis McEnroe2018-08-11 12:47:39 -0400
commita1bb27ae01b1b77c4ca18e5edd727b203c3c004e (patch)
tree9bb7259ecbb426f4550e47066b9482a429df05e5 /chat.c
parent6323ca0209383cec1bf774f9723b63a5a4685710 (diff)
Fix commented out error handling
Oops. Had commented it out so I could attach a debugger without exiting
on EINTR.
Diffstat (limited to 'chat.c')
-rw-r--r--chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chat.c b/chat.c
index c85a1fe..ed33fbd 100644
--- a/chat.c
+++ b/chat.c
@@ -145,7 +145,7 @@ static char *prompt(const char *prompt) {
 		fflush(stdout);
 
 		ssize_t len = getline(&line, &cap, stdin);
-		//if (ferror(stdin)) err(EX_IOERR, "getline");
+		if (ferror(stdin)) err(EX_IOERR, "getline");
 		if (feof(stdin)) exit(EX_OK);
 		if (len < 2) continue;