Newsgroups: comp.parallel.pvm
From: ambati@apollo.HP.COM (Ashok Ambati)
Subject: Re: BUG?
Organization: Hewlett-Packard Company, Chelmsford, MA
Date: Tue, 29 Nov 1994 17:03:48 GMT
Message-ID: <D01GqD.14H@apollo.hp.com>

In article <D018Hx.94H@dutiws.twi.tudelft.nl>, johan@PROBLEM_WITH_INEWS_GATEWAY_FILE (Johan Meijdam) writes:
|> /*	Please could anyone tell me why this program quits at the line
|> 	teken = getc(invoer) when using the pvm 3.3.4 environment
|> 	(this program runs without pvm and the pvm_... lines).
|> 	Substituting getc() with fscanf() still causes this program
|> 	to abort at the same line. Cout this be a bug or is it due to my
|> 	computer overhere (HP Apollo 735 running HPUX)
|> */ 
|> 
|> #include <stdio.h>
|> #include "pvm3.h"
|> 
|> main()
|> {	FILE *invoer;
|> 	char teken;
|> 	int  t;
|> 
|> 	pvm_mytid();
|> 	setbuf(stdout, NULL);
|> 	invoer = fopen("datafile", "r");
|> 	while (!feof(invoer)) {
|> 		teken = getc(invoer);
|> 		putchar(teken);
|> 	}
|> 	fclose(invoer);
|> 	pvm_exit();
|> }
|> 

I tried the above program the following way - start the pvm console, quit from 
it and then run the above program with the datafile available in the same 
directory. It works fine.

If you are starting up in a different manner, that may be causing the problem.
Let me know if you still have problems.

