Bug in applib
Wilhelm Hagg
hagg at ipf.bau-verm.uni-karlsruhe.de
Thu Nov 2 07:00:00 EST 1995
Hi,
the p.map.new problem using GRASS on Dec-Alpha and other Systems
ERROR: Can't read from ...
is caused by the following GRASS - bug:
src/paint/Interface/applib/device.c
Line: 125
P__readdev (buf, n)
char *buf;
{
int i;
P__flushdev ();
while (n > 0)
{
i = read (rfd, buf, n);
if (i <= 0)
^^^^^^^^^^^^^^|---> Must be: if (i < 0)
P__errordev ("can't read from");
buf += i;
n -= i;
}
}
Otherwise the son process (the driver) exits with the above
Errormessage in those cases, where he reads faster than the
other process writes to the pipe between the processes
establisched by fork.
Change this, and it will work a little better :-)
Wilhlem
PS: Hope I had the right adress for this mailing list
(just changed u - user by p - programmer)
--
Wilhelm Hagg, Institute of Photogrammetry and Remote Sensing
Karlsruhe University, Englerstr. 7, D-76128 Karlsruhe
Phone: +49 721 608 4131, Fax: +49 721 69 45 68
Email: hagg at ipf.bau-verm.uni-karlsruhe.de
WWW: http://www-ipf.bau-verm.uni-karlsruhe.de/Personen/hagg/hagg.html
More information about the grass-dev
mailing list