Date: Wed, 27 Nov 1996 13:48:26 +0200 (IST) From: Eli Zaretskii To: Juanjo Erauskin Cc: djgpp AT delorie DOT com Subject: Re: Problem with shared open In-Reply-To: <329B2514.730@jet.es> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 26 Nov 1996, Juanjo Erauskin wrote: > I have a DJGPP compiled program that runs in W95. This open a file in > O_RDWR mode in one MSDOS window and then program runs OK. But if I try > to run this same program in another MSDOS window then program fails and > set errno with this error: > > (4) EACCES - Permission denied What happens if one program opens the file with O_RDWR, but the other with O_RDONLY? Does it work then? If it does, then maybe this is just the Windows way of saving you from trouble?