thlorenz / libuv-dox

Documenting types and methods of libuv, mostly by reading 'uv.h'.
https://github.com/joyent/libuv
MIT License
252 stars 29 forks source link

print dot to stdout immediately #8

Closed CatTail closed 9 years ago

thlorenz commented 9 years ago

Could you explain a bit more what this improves? My intent was to print on one line. I believe a better solution would be to use fprintf(stderr, ".") instead of making the terminal explode with a bunch of lines ;)

CatTail commented 9 years ago

Nothing will be printed until the end of program, this confuse me that I doubt this process is being block. After the end of program a lot of dot being printed, I realize that the content just not printed. I think print it immediately could illustrate that idle will be called in every loop.

thlorenz commented 9 years ago

Yeah, printing to stderr would fix that in a better way IMO. stdout gets buffered.

thlorenz commented 9 years ago

Closing for now, open to a PR that changes printf(... to fprintf(stderr, ...