Fri Feb 28 11:41:00 GMT 2020
On Feb 27 15:35, Ken Brown wrote:
> Hi Corinna,
> I think I see how to enable FIFOs to be opened for reading multiple times,
> by using shared memory to maintain data needed by all readers.
> To this end I'm trying to imitate some of what you did in
> fhandler_socket_unix.cc, and I find I'm confused about the use of
> reopen_shmem. When this is called by fhandler_socket_unix::dup, shouldn't
> the call actually be
> fhs->reopen_shmem () ?
> It's the new fhandler that needs to open the shared memory, isn't it? Or am
> I misunderstanding something?
You're right. And then it's also called too early.
It should only be called after fhs->shmem_handle is valid.
I applied a patch.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 833 bytes
Desc: not available
More information about the Cygwin-developers