X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.c;h=09963f2e8b4b55d4931b8dd5236aecc2a9012015;hp=10fc121912b8d242b7ca15a8081c2e7e490e44c5;hb=d261c537236503faaa31dfb44278b08a492020ec;hpb=d85091bebd5abb6f473a31dd118f4d853d1317c9 diff --git a/net.c b/net.c index 10fc1219..09963f2e 100644 --- a/net.c +++ b/net.c @@ -362,7 +362,7 @@ static int sendall(int fd, const char *buf, size_t *len) assert(total); *len = 0; while (*len < total) { - int ret = send(fd, buf + *len, total - *len, 0); + int ret = write(fd, buf + *len, total - *len); if (ret == -1) return -ERRNO_TO_PARA_ERROR(errno); *len += ret;