Log request path on sigpipe

This commit is contained in:
Neale Pickett 2012-03-22 21:36:21 -05:00
parent 81d2a1a5d7
commit 19950e5b3b
1 changed files with 1 additions and 1 deletions

2
eris.c
View File

@ -303,7 +303,7 @@ fake_sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
m = write(out_fd, buf, l);
if (-1 == m) {
/* 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);
}
l -= m;