Subject: Re: file sharing during write
From: [email-masked] (root)

25 Jan 1997 00:02:11 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Content-Type: text
Original-To: [email-masked] (Jim Balter)
Original-Cc: [email-masked]
In-Reply-To: <[email-masked]> from "Jim Balter" at Jan 23, 97 05:18:50 pm
Content-Length: 1534      
Original-Sender: [email-masked]

> find uses the lstat system call, and the cygwin implementation
> opens the file and actually reads it in order to see whether it is a
> symlink (now you know why find takes so long).  symlink_check dies
> opening a file opened for writing (a piece of Miscrosoft brilliance
> that helps unix weenies win the advocacy wars).  
[snip]
> Or, somehow tell the OS to allow files open for writing to be open
> for reading.

HINT:
----
HANDLE CreateFile(
    LPCTSTR  lpFileName,	// pointer to name of the file 
    DWORD  dwDesiredAccess,	// access (read-write) mode 
    DWORD  dwShareMode,	// share mode  <<<<<<<<<<<<<<look this <<<<<<<<<<<<<<
    LPSECURITY_ATTRIBUTES  lpSecurityAttributes,// pointer to security descriptor 
    DWORD  dwCreationDistribution,	// how to create 
    DWORD  dwFlagsAndAttributes,	// file attributes 
    HANDLE  hTemplateFile 	// handle to file with attributes to copy  
   );
Parameters
[snip]
dwShareMode
Specifies how this file can be shared. This parameter must be some combination 
of the following values:   
Value	Meaning
0	Prevents the file from being shared.
FILE_SHARE_READ	Other open operations can be performed on the file for 
                read access.
FILE_SHARE_WRITE	Other open operations can be performed on the file 
                for write access.

I suspect strongly that bash when opening the redirection file is just using
zero, meaning no share.

-- 
Jacob Navia	Logiciels/Informatique
41 rue Maurice Ravel			Tel 01 48.23.51.44
93430 Villetaneuse 			Fax 01 48.23.95.39
France
-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".