Cygwin: FIFO: update clone and dup
Deal with all clients.
This commit is contained in:
committed by
Corinna Vinschen
parent
c6e221c036
commit
035bf7dc84
@ -1309,9 +1309,11 @@ public:
|
||||
fhandler_fifo *clone (cygheap_types malloc_type = HEAP_FHANDLER)
|
||||
{
|
||||
void *ptr = (void *) ccalloc (malloc_type, 1, sizeof (fhandler_fifo));
|
||||
fhandler_fifo *fh = new (ptr) fhandler_fifo (ptr);
|
||||
copyto (fh);
|
||||
return fh;
|
||||
fhandler_fifo *fhf = new (ptr) fhandler_fifo (ptr);
|
||||
copyto (fhf);
|
||||
for (int i = 0; i < nclients; i++)
|
||||
fhf->client[i].fh = client[i].fh->fhandler_base::clone ();
|
||||
return fhf;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user