--- "K.S. Bhaskar" <[EMAIL PROTECTED]> wrote:

> A feature of POSIX (implemented by UNIX/Linux) is that the normal
> file
> access behavior is that multiple processes are allowed to write into
> a
> file ...
> 

Bhaskar is right here. There are special situations where you might
want to allow multiple processes to write to a file they simultaneously
have open (e.g., a log file) but this is rare, and I don't think I've
ever needed to do this. But GTM is doing the right thing here.

> I strongly recommend that multiple GT.M processes not write to the
> same
> file.  

As do I. If you really only want one file, you need to look at lockf()
or flock(), but I don't think this is what you want, either. Stevens'
book on "Advanced Unix Programming" (which has now grown quite thick)
is an excellent reference here.

> What exactly is the desired behavior from a functional point
> of
> view?
> 
> -- Bhaskar
> 


===
Gregory Woodhouse  <[EMAIL PROTECTED]>
"Interaction is the mind-body problem of computing."
--Philip L. Wadler


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Hardhats-members mailing list
Hardhats-members@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hardhats-members

Reply via email to