about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-11 12:47:39 -0400
committerJune McEnroe <june@causal.agency>2018-08-11 12:47:39 -0400
commita1bb27ae01b1b77c4ca18e5edd727b203c3c004e (patch)
tree9bb7259ecbb426f4550e47066b9482a429df05e5
parentFix removing entries during tab complete (diff)
downloadcatgirl-a1bb27ae01b1b77c4ca18e5edd727b203c3c004e.tar.gz
catgirl-a1bb27ae01b1b77c4ca18e5edd727b203c3c004e.zip
Fix commented out error handling
Oops. Had commented it out so I could attach a debugger without exiting
on EINTR.
Diffstat (limited to '')
-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;