chiark
/
gitweb
/
~mdw
/
disorder
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
error/fatal/info -> disorder_error/fatal/info
[disorder]
/
cgi
/
cgimain.c
diff --git
a/cgi/cgimain.c
b/cgi/cgimain.c
index e4c722033a9640273eedb7b3c7509d4682e784f8..4ea98ecf25460fa38d41c862cd160d1c400758e8 100644
(file)
--- a/
cgi/cgimain.c
+++ b/
cgi/cgimain.c
@@
-65,7
+65,7
@@
int main(int argc, char **argv) {
mx_search_path(pkgdatadir);
/* Never cache anythging */
if(printf("Cache-Control: no-cache\n") < 0)
mx_search_path(pkgdatadir);
/* Never cache anythging */
if(printf("Cache-Control: no-cache\n") < 0)
- fatal(errno, "error writing to stdout");
+
disorder_
fatal(errno, "error writing to stdout");
/* Create the initial connection, trying the cookie if we found a suitable
* one. */
dcgi_login();
/* Create the initial connection, trying the cookie if we found a suitable
* one. */
dcgi_login();
@@
-74,7
+74,7
@@
int main(int argc, char **argv) {
/* In practice if a write fails that probably means the web server went away,
* but we log it anyway. */
if(fclose(stdout) < 0)
/* In practice if a write fails that probably means the web server went away,
* but we log it anyway. */
if(fclose(stdout) < 0)
- fatal(errno, "error closing stdout");
+
disorder_
fatal(errno, "error closing stdout");
return 0;
}
return 0;
}