1
1

- Store the result of the 1-byte read... and assert, in case

of error checking -- we don't return errors here anyway.
   Fixes Coverity CID 981

This commit was SVN r19259.
Этот коммит содержится в:
Rainer Keller 2008-08-12 18:00:38 +00:00
родитель 5a885a9150
Коммит d57ef70149

Просмотреть файл

@ -862,7 +862,9 @@ mca_oob_tcp_accept_thread_handler(int sd, short flags, void* user)
happen, so no need for yet another #if */
if (OPAL_EV_READ == flags) {
char buf[1];
read(sd, buf, 1);
ssize_t ret = read(sd, buf, 1);
assert (ret == 1);
}
/* Copy in all pending connections. opal_list_join is O(1), so