aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-03-11 20:15:53 +0000
committerRoger Dingledine <arma@torproject.org>2004-03-11 20:15:53 +0000
commit52e813951a416588ad78e5ab9db3f3996d547ba5 (patch)
tree9fb978e63a80a3be3ca6271f328af521c19b5f03 /src/or/buffers.c
parent976bacae944cde32da6dedb7910538929f933452 (diff)
downloadtor-52e813951a416588ad78e5ab9db3f3996d547ba5.tar
tor-52e813951a416588ad78e5ab9db3f3996d547ba5.tar.gz
start tracking the 'broken pipe' error
svn:r1261
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index d42350b22..65b77e06e 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -253,6 +253,7 @@ int flush_buf(int s, buf_t *buf, int *buf_flushlen)
write_result = send(s, buf->mem, *buf_flushlen, 0);
if (write_result < 0) {
if(!ERRNO_EAGAIN(errno)) { /* it's a real error */
+ assert(errno != EPIPE); /* get a stack trace to find epipe bugs */
return -1;
}
#ifdef MS_WINDOWS