From 1fec7cd6f817e52a6e55458d584a7a5092ba6aed Mon Sep 17 00:00:00 2001 From: John Keeping Date: Sat, 18 May 2013 15:57:03 +0100 Subject: html.c: die when write fails If we fail to write HTML output once, there's no point carrying on so just write a failure message once and die. By using Git's die_errno function we also let the user know in what way the write failed. Signed-off-by: John Keeping --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index f7772dc..03277db 100644 --- a/html.c +++ b/html.c @@ -78,7 +78,7 @@ char *fmtalloc(const char *format, ...) void html_raw(const char *data, size_t size) { if (write(htmlfd, data, size) != size) - fprintf(stderr, "[html.c] html output truncated.\n"); + die_errno("write error on html output"); } void html(const char *txt) -- cgit 1.4.1 t' value='switch'/> dontfiles
summary refs log tree commit diff
Commit message (Collapse)Author
2020-07-20Set pull.rebase trueJune McEnroe
2020-07-18Read from stdin in orderJune McEnroe
2020-07-18Actually fix nvim and doas presence testsJune McEnroe
2020-07-14Install up CGI with mode 700June McEnroe
It should never be served as a regular file.
2020-07-14Check that there is upload dataJune McEnroe
2020-07-14Add CGI upload program for temp.causal.agencyJune McEnroe
2020-07-10Add The Broken KingdomsJune McEnroe
2020-07-08Add facebook and twitter to title user-agentJune McEnroe
This fixes fetching tweets again! https://github.com/thelounge/thelounge/pull/ 3602 (Intentionally breaking the link so GitHub doesn't add a "referenced this PR" thing?)
2020-06-30Tweak causal.agency for mostly no reasonJune McEnroe
2020-06-30Add Ancillary JusticeJune McEnroe
2020-06-26Add password non-manager to planJune McEnroe
I've had this idea for years...
2020-06-26Tweak TF2 sensitivities once moreJune McEnroe
2020-06-19Add note about litterbox bot useJune McEnroe
2020-06-19Publish "IRC suite"June McEnroe
2020-06-17Add errors to link.shJune McEnroe