[14221] in Athena Bugs
rpd
daemon@ATHENA.MIT.EDU (Brett David Rosen)
Wed Feb 28 21:51:07 1996
From: Brett David Rosen <bdrosen@MIT.EDU>
To: bug-olc@MIT.EDU
Reply-To: bdrosen@MIT.EDU
Date: Wed, 28 Feb 1996 21:51:01 EST
If the rpd on matisse is using the same code as is in the sources,
it is using a different version of sread and swrite that seem to
cause problems in situations where the "standard" ones don't.
The standard one has code in it to check how many loops the
do loop has gone through whereas the rpd one does not.
/*
* A necessary evil so that the daemon doesn't hang.
*/
tot_read = 0;
loops = 0;
n_read = 0;
do {
if (loops > 5) {
close(fd);
return(-1);
}
Could this be the cause of rpd hanging ?
(on my NetBSD box the sread and swrite
from rpd would not work at all. substituting in the standard ones
made things better)
Brett