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;
 
td>June McEnroe 2019-12-23Rename music.md to music.txtJune McEnroe 2019-12-23Add DO YOU DOUBT ME TRAITORJune McEnroe 2019-12-22Add license header to cgit CSSJune McEnroe 2019-12-22Add The Book of EttaJune McEnroe 2019-12-21Revert "Add first working version of imbox"June McEnroe 2019-12-21Add first working version of imboxJune McEnroe 2019-12-20Respect mailmap in gl pretty formatJune McEnroe 2019-12-20Set LANG in cgit filtersJune McEnroe 2019-12-20Source .editrc before applying -v or -eJune McEnroe 2019-12-20Disable signing commitsJune McEnroe 2019-12-19Ignore about-filterJune McEnroe 2019-12-19Fix matching make tags with no sourcesJune McEnroe 2019-12-19Avoid matching := assignments as tagsJune McEnroe 2019-12-18Hide line numbers when rendering mdocJune McEnroe 2019-12-18Customize cgit CSSJune McEnroe 2019-12-18Use :target rather than :focus pseudo-classJune McEnroe 2019-12-18Copy cgit auxiliary binaries properlyJune McEnroe 2019-12-18Add git.causal.agency cgit configJune McEnroe 2019-12-18Bail from hi if input is binaryJune McEnroe 2019-12-16Post "cgit setup"June McEnroe