newlib-cygwin/winsup/cygwin/mm
Takashi Yano 65d34484e9 Cygwin: shared: Fix access permissions setting in open_shared().
After the commit 93508e5bb8, the access permissions argument passed
to open_shared() is ignored and always replaced with (FILE_MAP_READ |
FILE_MAP_WRITE). This causes the weird behaviour that sshd service
process loses its cygwin PID. This triggers the failure in pty that
transfer_input() does not work properly.

This patch resumes the access permission settings to fix that.

Fixes: 93508e5bb8 ("Cygwin: open_shared: don't reuse shared_locations parameter as output")
Reviewed-by: Corinna Vinschen <corinna@vinschen.de>
Signedd-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
2023-08-16 22:11:17 +09:00
..
cygheap.cc Cygwin: cygheap: fix fork error after heap has grown 2023-04-18 10:06:53 +02:00
heap.cc Cygwin: fix two comments in heap.cc and memory_layout.h 2023-01-18 20:13:38 +01:00
malloc.cc
malloc_wrapper.cc Cygwin: mm/malloc_wrapper.cc: fix a comment 2022-08-10 18:05:12 +02:00
mmap.cc Cygwin: mmap: use SRWLOCK instead of muto 2022-08-23 12:09:44 +02:00
mmap_alloc.cc
shared.cc Cygwin: shared: Fix access permissions setting in open_shared(). 2023-08-16 22:11:17 +09:00