summary refs log tree commit diff
path: root/chat.c
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 /chat.c
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;
 
a href='/src/commit/bin/hnel.c?id=f2b5edf04ebfcba6b9f7c8e7fe9f118ad49996a3&follow=1'>Generalize hnelJune McEnroe It's like tr for PTYs. 2018-01-29Remove Tarmak remappings from vimJune McEnroe 2018-01-29Switch back to QWERTY on LinuxJune McEnroe I think the only thing I'll miss is N and E on home row (which was Tarmak 1, if I remember correctly). 2018-01-29Take fbclock font in env varJune McEnroe 2018-01-29Support fbclock fonts wider than 8June McEnroe 2018-01-29Take font path on fbclock argvJune McEnroe 2018-01-29Add fbclockJune McEnroe 2018-01-29Remove color from MakefileJune McEnroe 2018-01-29Set t_Co = 8June McEnroe Weirdly with t_Co = 16 yellow and bright white weren't showing up on TERM=linux. 2018-01-29Add :Q command aliasJune McEnroe It seemes I can't take my finger off the shift key fast enough. 2018-01-29Add setuid target for briJune McEnroe 2018-01-28Add init function to fb interfaceJune McEnroe 2018-01-28Add color.cJune McEnroe