Fix commented out error handling

Oops. Had commented it out so I could attach a debugger without exiting
on EINTR.
master
Curtis McEnroe 2018-08-11 12:47:39 -04:00
parent 6323ca0209
commit a1bb27ae01
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 1 additions and 1 deletions

2
chat.c
View File

@ -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;