I found this same problem being mentioned by Steve Hay
in Auguest. But the hack doesn't work for me.
My guess is that when running as an NT service, there
is not stdin/stdout/stderr assoicated with the process
(correct me if I am wrong.) So dup/dup2 redirection
failed to work and thus
"Andrew C. Wong" wrote:
I found this same problem being mentioned by Steve Hay
in Auguest. But the hack doesn't work for me.
My guess is that when running as an NT service, there
is not stdin/stdout/stderr assoicated with the process
(correct me if I am wrong.) So dup/dup2 redirection
Hi Steve,
Thanks for your hint. I have it working by using a pipe
in ssl_util.c instead.
Andrew
ssl_util_ppopen_child()
{
...
CreatePipe(hPipeRead, hPipeWrite, sa, 0);
..
si.hStdOutput = hPipeWrite;
..
if (CreateProcess(NULL, pCommand, NULL, NULL, TRUE, 0,
...
}
I found this same problem being mentioned by Steve Hay
in Auguest. But the hack doesn't work for me.
My guess is that when running as an NT service, there
is not stdin/stdout/stderr assoicated with the process
(correct me if I am wrong.) So dup/dup2 redirection
failed to work and thus