Don't rely on size argument in shmget call

* shm.cc (shmget): Fetch segment size from server rather than using
	size argument to accommodate existing segments.  Add comment to explain
	why.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2015-04-12 14:05:12 +02:00
parent 5778304f16
commit 023be4aedb
3 changed files with 17 additions and 1 deletions

View File

@@ -40,3 +40,6 @@ Bug Fixes
- Fix UTF-16 surrogate handling in wctomb and friends.
Addresses: https://cygwin.com/ml/cygwin/2015-03/msg00452.html
- Fix shmget usage of size parameter for already existing segments.
Addresses: https://cygwin.com/ml/cygwin/2015-04/msg00105.html