Cygwin: FIFO: update fixup_after_fork

Fixup each client.  Reset listen_client_thr and lct_termination_evt.
This commit is contained in:
Ken Brown 2019-03-22 19:30:40 +00:00 committed by Corinna Vinschen
parent 035bf7dc84
commit e02a0f7295
1 changed files with 9 additions and 0 deletions

View File

@ -850,6 +850,15 @@ fhandler_fifo::fixup_after_fork (HANDLE parent)
fhandler_base::fixup_after_fork (parent);
fork_fixup (parent, read_ready, "read_ready");
fork_fixup (parent, write_ready, "write_ready");
for (int i = 0; i < nclients; i++)
{
client[i].fh->fhandler_base::fixup_after_fork (parent);
fork_fixup (parent, client[i].connect_evt, "connect_evt");
fork_fixup (parent, client[i].dummy_evt, "dummy_evt");
}
listen_client_thr = NULL;
lct_termination_evt = NULL;
fifo_client_unlock ();
}
void