diff options
author | Christopher Faylor <me@cgf.cx> | 2008-07-27 14:52:46 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2008-07-27 14:52:46 +0000 |
commit | 904413e731347d5fd0e8356c3f79744eb3d977a4 (patch) | |
tree | dfda56c0bf0bfe3d28273c1de3c3b006e04e6cfb /winsup/cygwin/shared_info.h | |
parent | bfd2b1c9307ebe2cf8611b447cafa2809c9ac8dd (diff) | |
download | cygnal-904413e731347d5fd0e8356c3f79744eb3d977a4.tar.gz cygnal-904413e731347d5fd0e8356c3f79744eb3d977a4.tar.bz2 cygnal-904413e731347d5fd0e8356c3f79744eb3d977a4.zip |
* shared_info.h (shared_destroy): Declare.
* shared.cc (shared_destroy): Define new function to destroy shared memory
regions.
* init.cc (dll_entry): Call shared_destroy when dll detaches from the process.
Diffstat (limited to 'winsup/cygwin/shared_info.h')
-rw-r--r-- | winsup/cygwin/shared_info.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/shared_info.h b/winsup/cygwin/shared_info.h index d0ef600f9..45b347014 100644 --- a/winsup/cygwin/shared_info.h +++ b/winsup/cygwin/shared_info.h @@ -120,7 +120,7 @@ public: #define SHARED_INFO_CB 39328 -#define CURR_SHARED_MAGIC 0x22f9ff0bU +#define CURR_SHARED_MAGIC 0x398d8baU /* NOTE: Do not make gratuitous changes to the names or organization of the below class. The layout is checksummed to determine compatibility between @@ -164,6 +164,7 @@ enum shared_locations }; void __stdcall memory_init (); +void __stdcall shared_destroy (); #define shared_align_past(p) \ ((char *) (system_info.dwAllocationGranularity * \ |