Troubles opening the same file on 2 nodes

Beliveau Steeve u715 at JSP.UMontreal.CA
Mon Mar 25 05:10:11 AEST 1991


Hi!
	Here's a little program that will well explain my problem :

#include <sys/file.h>

main()
{
	int fd;

	if (open("test", O_RDWR, 0777) == -1)
		perror("THE error:");
	for(;;);
}

	And the error is: Text file busy.

If I execute this program on the same node, on two different shell there is no errors. 
  
So what is the difference between excuting on the same or on two nodes?
 
I'm doing this on Apollo sr-10.2+ with BSD4.3.
	
	Thanks for any help you can give me!

	
-- 
----------------------------------------------------------------------------
	Steeve Beliveau          | Allen's Axiom:  When all else fails,
email : u715 at jsp.umontreal.ca    |                 follow the instructions.
----------------------------------------------------------------------------



More information about the Comp.unix.programmer mailing list