From a1bb27ae01b1b77c4ca18e5edd727b203c3c004e Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Sat, 11 Aug 2018 12:47:39 -0400 Subject: Fix commented out error handling Oops. Had commented it out so I could attach a debugger without exiting on EINTR. --- chat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chat.c') 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; -- cgit 1.4.1-2-gfad0