delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/04/13:15:57

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Tue, 04 Feb 2003 13:22:43 -0500
From: Jason Tishler <jason AT tishler DOT net>
Subject: Re: mmap() issue affects cygipc (and PostgreSQL's PL/Tcl)
In-reply-to: <20030204174804.GI5822@cygbert.vinschen.de>
To: cygwin AT cygwin DOT com
Mail-followup-to: cygwin AT cygwin DOT com
Message-id: <20030204182243.GB1400@tishler.net>
MIME-version: 1.0
User-Agent: Mutt/1.4i
References: <20030204165929 DOT GA1400 AT tishler DOT net>
<20030204174804 DOT GI5822 AT cygbert DOT vinschen DOT de>

Corinna,

On Tue, Feb 04, 2003 at 06:48:04PM +0100, Corinna Vinschen wrote:
> On Tue, Feb 04, 2003 at 11:59:30AM -0500, Jason Tishler wrote:
> > The root cause of the problem is opening the file with the "O_TRUNC"
> > flag -- without it, the open (in open2) succeeds.  Unfortunately,
> > cygipc seems to need open with truncation semantics for proper
> > operation.
> 
> I'm surprised that this is meant to work at all.

Me too.  Looking "under the hood" of cygipc, is a little scary... :,)

> However, did you check to omit the O_CREAT?

Yes, and I just tried again to be sure.  Without O_CREAT (but with
O_TRUNC) still fails in the same way, without O_TRUNC (but with O_CREAT)
does not fail.

> I could easiliy imagine that Win32 doesn't like to remove and recreate
> a file which is mmapped currently...

Me too.

Any other ideas?  Or, are Cygwin PostgreSQL PL/Tcl users out of luck
then?

Thanks,
Jason

-- 
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D  8784 1AFD E4CC ECF4 8EF6

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019