* pipe.cc (fhandler_pipe::open): Duplicate content of opened pipe
fhandler before calling dup method.
This commit is contained in:
parent
5578c33733
commit
f5a51f9187
|
@ -1,3 +1,8 @@
|
||||||
|
2010-08-14 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* pipe.cc (fhandler_pipe::open): Duplicate content of opened pipe
|
||||||
|
fhandler before calling dup method.
|
||||||
|
|
||||||
2010-08-13 Corinna Vinschen <corinna@vinschen.de>
|
2010-08-13 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* cygheap.h (class cwdstuff): Make drive_length private.
|
* cygheap.h (class cwdstuff): Make drive_length private.
|
||||||
|
|
|
@ -86,6 +86,9 @@ fhandler_pipe::open (int flags, mode_t mode)
|
||||||
set_errno (EACCES);
|
set_errno (EACCES);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
*this = *(fhandler_pipe *) cfd;
|
||||||
|
set_io_handle (NULL);
|
||||||
|
pc.reset_conv_handle ();
|
||||||
if (!cfd->dup (this))
|
if (!cfd->dup (this))
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue