in reply to Win32: Redirect STDOUT to socket

close(STDOUT); before the open makes it work (but I don't know why).

Replies are listed 'Best First'.
Re^2: Win32: Redirect STDOUT to socket
by repellent (Priest) on Feb 09, 2009 at 17:46 UTC
    Thanks, ikegami! It works for within the current "process" only. Please see my update.