Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cygwin: console: Do not unmap shared console memory belonging to ctty.
In the condition that console setup for CTTY and close run at the sametime, accessing shared console memory which is already unmapped may occur. With this patch, to avoid this race issue, shared console memory which belongs to contorolling terminal (CTTY) is kept mapped as before. Addresses: https://cygwin.com/pipermail/cygwin/2024-February/255561.html Fixes: 3721a75 ("Cygwin: console: Make the console accessible from other terminals.") Reported-by: Kate Deplaix <[email protected]> Signed-off-by: Takashi Yano <[email protected]>
- Loading branch information