in reply to Re^3: Win32: Redirect STDOUT to socket
in thread Win32: Redirect STDOUT to socket

Thanks so much for the links! I tried to have the newly created process inherit filehandles from the calling process with no luck. Perhaps I'm missing something? See UPDATE #2.

Replies are listed 'Best First'.
Re^5: Win32: Redirect STDOUT to socket
by BrowserUk (Patriarch) on Feb 10, 2009 at 14:58 UTC

    Sorry, but posting updates to the root node, and then new nodes saying you've done so just makes life harder for everyone. Why not just post the update in the new node?

    You are still using fork which gives you a thread not a process on win32. And you are still trying to use AF_UNIX, SOCK_STREAM, on win32 which doesn't make any sense as Win32 doesn't know about unix sockets.

      Will do. I was just trying to keep the root node up-to-date with where I'm at so far. In other SoPW posts, I personally felt it was difficult to track sequence when Notes branched out too much, often wishing that the OP would indicate which solution worked best with an update. YMMV.

      I have been playing around a lot with Win32::Process and this will require more meditation on my part. After much experimentation, I got a feel of the internals and now realize how the threaded fork gets in the way of the expectations of the OP.

      Thanks again, you've been a big help :)