mirror of https://github.com/nealey/eris.git
Log request path on sigpipe
This commit is contained in:
parent
81d2a1a5d7
commit
19950e5b3b
2
eris.c
2
eris.c
|
@ -303,7 +303,7 @@ fake_sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
|
||||||
m = write(out_fd, buf, l);
|
m = write(out_fd, buf, l);
|
||||||
if (-1 == m) {
|
if (-1 == m) {
|
||||||
/* ALSO screwed. */
|
/* ALSO screwed. */
|
||||||
fprintf(stderr, "Unable to write to client. Dying.\n");
|
fprintf(stderr, "Unable to write to client: %m (req %s). Dying.\n", path);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
l -= m;
|
l -= m;
|
||||||
|
|
Loading…
Reference in New Issue