in reply to Re^9: Please suggest a non-forking way to do this (OS: windows)
in thread Please suggest a non-forking way to do this (OS: windows)
as far as I know, it's impossible to detect whether the pipe has data waiting.
Actually, you can. See PeekNamedPipe() which is explicitly documented as also working on:
a handle to the read end of an anonymous pipe, as returned by the CreatePipe function.
Though it is difficult to see how to integrate it with win32/win32sck.c win32_select() in order to allow select to operate in the *nix fashion on pipes as well as sockets?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^11: Please suggest a non-forking way to do this (OS: windows)
by ikegami (Patriarch) on Sep 30, 2008 at 15:57 UTC | |
by BrowserUk (Patriarch) on Sep 30, 2008 at 16:26 UTC | |
by ikegami (Patriarch) on Sep 30, 2008 at 23:27 UTC |