Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

GoogleCodeExporter opened this issue Mar 24, 2015 · 2 comments


Copy link

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 by on 23 Mar 2007 at 11:13

Copy link

Will fix.

Original comment by on 24 Mar 2007 at 12:50

  • Changed state: Accepted

Copy link

Fixed in SVN 155. Thanks!

Original comment by 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
None yet

No branches or pull requests

1 participant