This is the mail archive of the
cygwin
mailing list for the Cygwin project.
fhandler pointers to cygwin shared memory during fork
- From: "Michael Clarke" <mclarke at timetra dot com>
- To: <cygwin at cygwin dot com>
- Date: Mon, 23 Feb 2004 12:30:58 -0000
- Subject: fhandler pointers to cygwin shared memory during fork
Hi folks,
I've been writing a Cygwin application that uses a DLL that maps memory
at the same virtual address as the default cygwin_shared address
(0x0A000000). My DLL maps the memory before Cygwin's dll_entry point is
called. I notice that open_shared correctly maps Cygwin's shared memory
area at a different virtual address to the default. However, tty file
handlers take a pointer (tc in class fhandler_termios) to the tty list
held in this shared memory area. During a fork, this pointer is copied
and never fixed up to account for differing cygwin_shared addresses
between parent and child. My question is, is it a goal of Cywgin to
avoid copying pointers to the shared memory areas during a fork?
Thanks,
Michael.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/