Skip to content
This repository was archived by the owner on Nov 20, 2022. It is now read-only.
This repository was archived by the owner on Nov 20, 2022. It is now read-only.

uvtee example doesn't work on windows #33

@vtjnash

Description

@vtjnash

In the uvtee example, uv_pipe_open(&file_pipe, fd) fails on windows because internally it calls uv_set_pipe_handle which only works on something that is actually a named pipe. Should I open an issue at libuv instead? I'm not sure how to fix it.


I'm similarly not certain the example is fully functional on Linux either. Treating a pipe as a file isn't always valid. For example:

$ echo something > test.txt
$ ./uvtee hello.txt < test.txt 
Aborted (core dumped)

I have a hack that fixes this issue, I'm wondering if you think I should also submit this fix upstream?


Thanks for the manual!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions