$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2008-08-01 10:08:48
Sachin Garg wrote:
> Ion,
> 
> I was wondering whats your take on this. Is it something that
> can/should be added to boost or would you prefer that I just hack it
> in my code only?
> 
> Sachin Garg
My opinion is that there is no solution without kernel help. The 
original Interproces library (Shmem) emulated windows behaviour in Unix 
and it was a nightmare to get consistent behaviour. This was changed in 
Interprocess. The relationship between System V and POSIX resources is 
quite obscure and I don't see a proper way to solve this.
The same problem with files and I haven't seen any clue to make Unix and
Windows behavior identical until today:
http://mg.to/2004/09/30/file_share_delete-in-shell-extension
According to this, adding FILE_SHARE_DELETE to the shared memory 
emulation functions would allow, UNIX-like behavior for Windows files. I 
  haven't had time to test this.
This would not solve your problem, because you want Windows behavior 
(failure when the resource is in use) in UNIX.
Regards,
Ion