Hello, Wondering if anyone has successfully gotten uv pipes/streams to forkpty working? Have been struggling for a couple of days now and even though forkpty does it's job and selects/starts the pty, the read cb receives nread: -4095 and a buf->len of 0 on the second read (almost like it's seeing EOF for some reason). The pid and master fd are returned correctly, and the uv_is_readable/writable are 1 after uv_pipe_open. Code is roughly:
uv_pipe_t pseudoTerminal; pid_t pid = forkpty(&master, nullptr, term, &winp); uv_pipe_init(uv_default_loop(), &pseudoTerminal, 0); uv_pipe_open(&pseudoTerminal, master); uv_read_start((uv_stream_t*)&pseudoTerminal, alloc_buffer, screen); Have tried writing to the pipe before read, and before and after read. uv_write returns a status of 0 and we do see the echo of the character count in the nread, but then we see nread -4095 and it stops working. Any thoughts or suggestions gladly received. Thanks Rob -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to libuv+unsubscr...@googlegroups.com. To post to this group, send email to libuv@googlegroups.com. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.