diff options
author | fergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917> | 2012-04-04 19:01:34 +0000 |
---|---|---|
committer | fergus.henderson@gmail.com <fergus.henderson@gmail.com@01de4be4-8c4a-0410-9132-4925637da917> | 2012-04-04 19:01:34 +0000 |
commit | 5976dbd5cadf47f100b913fb080262f85101126c (patch) | |
tree | 9de6268aad1e70fcd1d194525e313dac6c90c9c8 | |
parent | afe2a6531d63fd950e6c245f27c09ad75f0f646f (diff) | |
download | distcc-5976dbd5cadf47f100b913fb080262f85101126c.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().
git-svn-id: http://distcc.googlecode.com/svn/trunk@758 01de4be4-8c4a-0410-9132-4925637da917
-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); } |