changeset 638 | d348d0ea7b75 |
parent 506 | 82fe65b0edf8 |
--- a/components/top/patches/03.sunos5.patch Thu Dec 22 23:21:07 2011 +0000 +++ b/components/top/patches/03.sunos5.patch Tue Dec 27 10:38:57 2011 -0800 @@ -13,10 +13,10 @@ /* read the whole file */ p = malloc(st.st_size); -! if (pread(fd, p, st.st_size, 0) == -1) +! if (pread(fd, p, st.st_size, 0) != st.st_size) ! { ! (void) close(fd); -! op->fd_psinfo = -1; +! op->fd_lpsinfo = -1; ! free(p); ! continue; ! }