]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - file_write.c
file writer: Use xwrite() instead of plain write().
[paraslash.git] / file_write.c
index 28fddcb6a518fc2869271d26703dcaf02f73d481..cea21cb3f5e182798f922b8234aa49977c85ba6b 100644 (file)
@@ -122,7 +122,7 @@ static int file_write_post_select(__a_unused struct sched *s,
        bytes = btr_next_buffer(btrn, &buf);
        assert(bytes > 0);
        //PARA_INFO_LOG("writing %zu\n", bytes);
-       ret = write(pfwd->fd, buf, bytes);
+       ret = xwrite(pfwd->fd, buf, bytes);
        if (ret < 0)
                goto out;
        btr_consume(btrn, ret);