Fossil SCM

implementation of function “popen2” on win32

Closed

11622724e5b4681… · opened 15 years, 7 months ago

Type
Feature_Request
Priority
Severity
Resolution
Wont_Fix
Subsystem
Created
Aug. 26, 2010 9:03 a.m.

I use this function in winhttp.c to improve windows http server performance.

see my attachment.

Have a fun!


anonymous added on 2010-08-26 09:08:18:
Notice: The child processes must set "stdin" and "stdout" to binary mode when use pipe to pass binary data.

    _setmode(0, _O_BINARY);
    _setmode(1, _O_BINARY);

anonymous added on 2010-08-26 09:53:14:
And I have a suggestion that the subroutine "pclose2" is prone to confuse.

Such as in winhttp.c, if the parent does not close pOut in time, the child will block on reading the pipe until his parent close the pOut.

Comments (1)

system 2 years, 2 months ago

Closing as part of periodic cleanup.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button