Redirection of stderr output to pipe not possible in realtime #30

Closed
GoogleCodeExporter opened this Issue Mar 24, 2015 · 2 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter
What steps will reproduce the problem?
1. Create the xdelta process from another application and redirect stderr 
console output to a pipe created by this other application. This can be 
done under Win32 by using STARTUPINFO::hStdError parameter of 
CreateProcess() API.

What is the expected output? What do you see instead?
I would expect to receive each line of stderr output from the pipe 
immediately after xdelta has written it. Instead stderr output is received 
in chunks of multiple lines, sometimes only after xdelta has ended.

What version of the product are you using? On what operating system?
xdelta30p on Win XP SP2

Please provide any additional information below.
I could fix this by adding the following line to function main() of xdelta:
setvbuf( stderr, NULL, _IONBF, 0 );
This effectively disables buffering of stderr so xdeltas output can be 
captured immediately. 

Original issue reported on code.google.com by as...@gmx.net on 23 Mar 2007 at 11:13

@GoogleCodeExporter

This comment has been minimized.

Show comment Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

Will fix.

Original comment by josh.mac...@gmail.com on 24 Mar 2007 at 12:50

  • Changed state: Accepted
Will fix.

Original comment by josh.mac...@gmail.com on 24 Mar 2007 at 12:50

  • Changed state: Accepted
@GoogleCodeExporter

This comment has been minimized.

Show comment Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 24, 2015

Fixed in SVN 155. Thanks!

Original comment by josh.mac...@gmail.com on 24 Mar 2007 at 1:37

  • Changed state: Fixed
Fixed in SVN 155. Thanks!

Original comment by josh.mac...@gmail.com on 24 Mar 2007 at 1:37

  • Changed state: Fixed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment