diff options
author | fergus.henderson <fergushenderson@users.noreply.github.com> | 2012-04-04 19:01:34 +0000 |
---|---|---|
committer | fergus.henderson <fergushenderson@users.noreply.github.com> | 2012-04-04 19:01:34 +0000 |
commit | 087d02daa2d3305323092ac62184a63081e5964c (patch) | |
tree | 9de6268aad1e70fcd1d194525e313dac6c90c9c8 | |
parent | d7dcad91ec2ec82ca925e6d717f71937ac6dd92e (diff) | |
download | distcc-git-087d02daa2d3305323092ac62184a63081e5964c.tar.gz |
Fix for distcc issue 96 <http://code.google.com/p/distcc/issues/detail?id=96>:
build problem with -Werror due to ignoring return value from read().
-rw-r--r-- | src/stats.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stats.c b/src/stats.c index 21aeb65..c1661f7 100644 --- a/src/stats.c +++ b/src/stats.c @@ -440,6 +440,7 @@ dcc_free_space %d MB\n\ free_space_mb); dcc_set_nonblocking(acc_fd); ret = read(acc_fd, challenge, 1024); /* empty the receive queue */ + if (ret < 0) rs_log_info("read on acc_fd failed"); dcc_writex(acc_fd, reply, reply_len); } |