[mpich-commits] r10650 - mpich2/trunk/src/pm/util
gropp at mcs.anl.gov
gropp at mcs.anl.gov
Wed Nov 21 11:29:17 CST 2012
Author: gropp
Date: 2012-11-21 11:29:17 -0600 (Wed, 21 Nov 2012)
New Revision: 10650
Modified:
mpich2/trunk/src/pm/util/pmiserv.c
Log:
Fix error in computing read buffer size
Modified: mpich2/trunk/src/pm/util/pmiserv.c
===================================================================
--- mpich2/trunk/src/pm/util/pmiserv.c 2012-11-20 23:10:55 UTC (rev 10649)
+++ mpich2/trunk/src/pm/util/pmiserv.c 2012-11-21 17:29:17 UTC (rev 10650)
@@ -1388,7 +1388,10 @@
while (curlen < maxlen) {
if (nextChar == endChar) {
do {
- n = read( fd, readbuf, sizeof(readbuf)-1 );
+ /* Carefully read data into buffer. This could be
+ written to read more at one time, but would then
+ need to know the size of the readbuf */
+ n = read( fd, readbuf, 1 );
} while (n == -1 && errno == EINTR);
if (n == 0) {
/* EOF */
More information about the commits
mailing list