aboutsummaryrefslogtreecommitdiff
path: root/CCache/stats.c
diff options
context:
space:
mode:
Diffstat (limited to 'CCache/stats.c')
-rw-r--r--CCache/stats.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/CCache/stats.c b/CCache/stats.c
index 8be1879d1..f87264794 100644
--- a/CCache/stats.c
+++ b/CCache/stats.c
@@ -91,7 +91,7 @@ static void write_stats(int fd, unsigned counters[STATS_END])
if (len >= (int)sizeof(buf)-1) fatal("stats too long?!");
lseek(fd, 0, SEEK_SET);
- write(fd, buf, len);
+ if (write(fd, buf, len) == -1) fatal("could not write stats");
}