Thanks to ALL
I've solved this problem by myself. Just open /proc/getpid()/fd/old_fd for write.
I've solved this problem by myself. Just open /proc/getpid()/fd/old_fd for write.
On Tue, Aug 5, 2008 at 6:20 PM, Сергей - <sergeykleymenov@xxxxxxxxx> wrote:
Hello dear ALL,
How can I change access mode of existing file descriptor.
I have a file descriptor open for reading, and I need to write to this file descriptor.
Thanks.