(loop): more braces to make gcc happy
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5724 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1997, 1998 Kungliga Tekniska H<>gskolan
|
||||
* Copyright (c) 1997, 1998, 1999 Kungliga Tekniska H<>gskolan
|
||||
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||
* All rights reserved.
|
||||
*
|
||||
@@ -75,11 +75,12 @@ loop (int s, int errsock)
|
||||
|
||||
readset = real_readset;
|
||||
ret = select (max(s, errsock) + 1, &readset, NULL, NULL, NULL);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
if (errno == EINTR)
|
||||
continue;
|
||||
else
|
||||
err (1, "select");
|
||||
}
|
||||
if (FD_ISSET(s, &readset)) {
|
||||
ret = do_read (s, buf, sizeof(buf));
|
||||
if (ret < 0)
|
||||
|
Reference in New Issue
Block a user