diff options
author | kamal@whence.com <kamal@whence.com@01de4be4-8c4a-0410-9132-4925637da917> | 2012-04-05 21:42:13 +0000 |
---|---|---|
committer | kamal@whence.com <kamal@whence.com@01de4be4-8c4a-0410-9132-4925637da917> | 2012-04-05 21:42:13 +0000 |
commit | 72166724241f7f71d1e16e911bd2e5facebe3019 (patch) | |
tree | 2fe13a6b491006e03610af2e7060ad4e948e0fbb | |
parent | 39b948e7c5a3e6e1af5a9f9d0a43de6e495144c7 (diff) | |
download | distcc-72166724241f7f71d1e16e911bd2e5facebe3019.tar.gz |
Fix for distcc issue 105 <http://code.google.com/p/distcc/issues/detail?id=105>
:
lsdistcc.c compile fails: variable 'nready' set but not used [-Werror]
git-svn-id: http://distcc.googlecode.com/svn/trunk@763 01de4be4-8c4a-0410-9132-4925637da917
-rw-r--r-- | src/lsdistcc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lsdistcc.c b/src/lsdistcc.c index 8bae7c8..a8d4ee1 100644 --- a/src/lsdistcc.c +++ b/src/lsdistcc.c @@ -720,6 +720,10 @@ static int one_poll_loop(struct rslave_s* rs, struct state_s states[], * and make the program take longer than it should. */ nready = poll(pollfds, (unsigned)nfds, 50); + if (nready == -1) { + fprintf(stderr, "lsdistcc: poll failed: %s\n", strerror(errno)); + exit(1); + } gettimeofday(&now, 0); |