[comp.os.minix] bug in amoeba/examples/client3 +FIX

jonathan@comp.vuw.ac.nz (Jonathan) (08/29/88)

Description:
	amoeba/examples/client3 never produces any output.

Repeat-By:
	Build the amoeba example programs as described in the READ_ME.
	On a system with an amoeba kernel, try:
			server3 &
			client3 /etc/rc
	Note the lack of output.

Fix:
	A Minix1 1.3-shared context diff for client3.c (from
	posting #37) follows.

--------------------------------------------------------------------
sed '/^X/s///' > /u/jonathan/client3.c.pat << '/'
X*** client3.c~	Mon Aug 29 15:17:48 1988
X--- client3.c	Mon Aug 29 15:18:31 1988
X***************
X*** 225,231 ****
X    }
X  
X    do {
X! 	if ((n=read(fd1, b, 1024) < 0)) {
X  		printf("Cannot read %s\n", argv[1]);
X  		exit(1);
X  	}
X--- 225,231 ----
X    }
X  
X    do {
X! 	if ((n=read(fd1, b, 1024)) < 0) {
X  		printf("Cannot read %s\n", argv[1]);
X  		exit(1);
X  	}
/
--------------------------------------------------------------------
-- 
-----------------------------------------------------------------------------
sane mailers: jonathan@comp.vuw.ac.nz |    Industrial democracy:
UUCP path: ...!uunet!vuwcomp!jonathan |           One factory, one vode!