Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!pasteur!ucbvax!decwrl!sun!pitstop!sundc!seismo!uunet!munnari!vuwcomp!jonathan From: jonathan@comp.vuw.ac.nz (Jonathan) Newsgroups: comp.os.minix Subject: bug in amoeba/examples/client3 +FIX Message-ID: <14163@comp.vuw.ac.nz> Date: 29 Aug 88 03:30:55 GMT Organization: Comp Sci, Victoria Univ., Wellington, New Zealand Lines: 41 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!